This page presents a summary of the C compiler options, grouped by type. The higher level groupings contain subgroups of options. In addition to a subgroup for basic translation of source code, one subgroup comprises options for special handling or control of the code, such as adding specialized debugging information. Another subgroup pertains to control of the linker and library search paths. Options related to performance and optimization are summarized in Getting started with optimization.
The options in this grouping have the broadest applicability for basic translation of source code. The subgroups of compiler options are generally concerned with:
Options related to basic translation of source code | |
Standards compliance | Compilation mode or control of compiler driver |
|
|
Control of the preprocessor | |
| |
Source code generation | |
|
|
Diagnostics | Compiled code |
|
|
The options in this grouping control the ability to generate and display
information related to the compilation process.
Options enabling specialized diagnostics | |
Diagnostics | |
|
|
The options in this grouping provide fine-grain control of the translation process and have less general applicability than basic translation options. The topics within this grouping of compiler options are generally concerned with:
Options for special handling, fine tuning, and debugging | |
Data alignment | Parallelization |
|
|
Floating-point and numerical features | |
Sizes | Rounding of floating-point values |
Single-precision values
| Other floating-point options |
Debugging | |
|
|
The options in this grouping are related to the linking phase of the compilation process. This grouping also contains options that provide specialized ways to specify search paths for finding libraries and header files. These compiler options are generally concerned with:
Options for controlling the ld command | |
Placing string literals and constants | Static and dynamic linking and libraries |
|
|
Search directories | Other linker options |
|
|
Related References