The options listed in the following table are supported under the corresponding Option Category.
| Option Category |
Use | Option Name |
|---|---|---|
| General | Show startup banner | -V |
| Include debug information | -g | |
| Optimization level | -O0 (default for Debug Config.) | |
| -O1 | ||
| -O2
(default for Release Config.) | ||
| -O3 | ||
| Warning level | -w | |
| Optimization | Provide frame pointers | -fno-omit-frame-pointer |
| Enable prefetch insertion | -prefetch | |
| Enable interprocedural optimization for single file compilation | -ip | |
| Disable intrinsic inline expansion | -nolib-inline | |
| Inline function expansion | -inline-level | |
| Optimize for Intel processor | -mtune | |
| Loop unroll count | -unroll | |
| Parallelization | -parallel | |
| Auto-parallelization Threshold | -par-threshold | |
| Precompiled Headers |
Automatic processing for precompiled headers | -pch |
| Precompiled headers file directory | -pch-dir | |
| Preprocessor | gcc compatibility options | -cxxlib |
| -fabi-version | ||
| -gcc-version | ||
| Enable gcc predefined macros | -no-gcc | |
| -gcc-sys | ||
| Non-standard gcc installation | -gcc-name | |
| Additional include directories | -I | |
| Ignore standard include path | -X | |
| Preprocessor definitions | -D | |
| Undefine preprocessor definitions | -U | |
| Undefine all preprocessor definitions | -A- | |
| Language | Enable use of ANSI aliasing rules in optimizations | -ansi-alias |
| ANSI conformance | -ansi | |
| -strict-ansi | ||
| -std | ||
| Recognize the restrict keyword | -restrict | |
| Support multibyte characters in source | -multibyte-chars | |
| Process OpenMP* directives | -openmp | |
| -openmp-stubs | ||
| Compilation Diagnostics |
Treat warnings as errors | -Werror |
| Allow usage messages | -Wcheck | |
| Enable warnings for style guideline violations | -Weffc++ | |
| Set error limit | -wn | |
| OpenMP report | -openmp-report | |
| Auto-parallelizer report | -par-report | |
| Vectorizer report | -vec-report | |
| Data | Enable argument aliasing | -alias-args |
| Honor constant constraint on parameters | -alias-const | |
| Assume no aliasing in program | -fno-alias | |
| Allow gprel addressing of common data variables | -fno-common | |
| Allocate as many bytes as needed for enumerated types | -fshort-enums | |
| Change default bitfield type to unsigned | -funsigned-bitfields | |
| Change default char type to unsigned | -funsigned-char | |
| Disable placement of zero-initialized variables in .bss - use .data | -nobss-init | |
| Default symbol visibility | -fvisibility | |
| Structure member alignment | -Zp | |
| Floating Point | Improve floating-point consistency | -mp |
| Round floating-point results | -fp-port | |
| Limit Complex range | -complex-limited-range | |
| Check floating-point stack | -fpstkchk | |
| Reliable floating-point exceptions model | -fp-model except | |
| Floating-point speculation | -fp-speculation=safe | |
| Floating-point model | -fp-model | |
| Flush denormal results to zero | -ftz | |
| Output Files | Generate assembler source file | -S |
| Code Generation |
Generate position-independent code | -fpic |
| Initialize local variables to NaN | -ftrapuv | |
| Use Intel processor extensions | -ax | |
| Require Intel processor extensions | -x | |
| Runtime | Generate traceback information | -traceback |
| Check uninitialized variables | -check-uninit |
| Libraries | Enable interprocedural optimization for single-file compilation | -ip |
| Link with static libraries | -static-intel | |
| Link Intel libcxa C++ Library statically | -static-libcxa | |
| Link with dynamic libraries | -shared-intel | |
| Use no C++ libraries | -no-cpprt | |
| Use no system libraries | -nodefaultlibs | |
| Additional libraries | -l | |
| Search directory for libraries | -L |