The options listed in the following tables 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 | -w0 | |
-w1 (default) | ||
-w2 | ||
Optimization | Provide frame pointers | -fp |
Ensable prefetch insertion | -prefetch | |
Enable interprocedural optimization for single file compilation | -ip | |
Disable intrinsic inline expansion | -nolib_inline | |
Inline function expansion | -Ob0 | |
-Ob1 | ||
-Ob2 | ||
Optimize for Intel® processor | -tpp5 | |
-tpp6 | ||
-tpp7 (default) | ||
Parallelization | -parallel | |
Precompiled Headers |
Automatic Processing for Precompiled Headers | -pch |
Preprocessor | gcc compatibility options | -cxxlib-icc |
-cxxlib-gcc | ||
-fabi-version | ||
-gcc-version | ||
Additional include directories | -I | |
Ignore standard include path | -X | |
Preprocessor definitions | -D | |
Do not predefine _GNUC_, _GNUC_MINOR_, _GNUC_PATCHLEVEL_ macros | -no-gcc | |
Undefine preprocessor definitions | -U | |
Undefine all preprocessor definitions | -A- | |
Language | Enable use of ANSI aliasing rules in optimizations | -ansi_alias |
Disable C99 support | -c99- | |
Recognize the restrict keyword | -restrict | |
Process OpenMP* directives | -openmp | |
-openmp_stubs | ||
Compilation Diagnostics |
Treat warnings as errors | -Werror |
Allow usage messages | -Wcheck | |
Enable equivalent of GNU* ANSI | -ansi | |
Strict ANSI conformance dialect | -strict_ansi | |
OpenMP report | -openmp_report0 | |
-openmp_report1 | ||
-openmp_report2 | ||
Auto-parallelizer report | -par_report0 | |
-par_report1 | ||
-par_report2 | ||
-par_report3 | ||
Vectorizer report | -vec_report0 | |
-vec_report1 | ||
-vec_report2 | ||
-vec_report3 | ||
-vec_report4 | ||
-vec_report5 | ||
Data | Enable argument aliasing | -alias_args |
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 | |
Store string literals in a writable section | -fwritable-strings | |
Disable placement of zero-initialized variables in .bss - use .data | -nobss_init | |
Default symbol visibility | -fvisibility=extern | |
-fvisibility=default | ||
-fvisibility=protected | ||
-fvisibility=hidden | ||
-fvisibility=internal | ||
Structure member alignment | -Zp1 | |
-Zp2 | ||
-Zp4 | ||
-Zp8 | ||
-Zp16 (default) | ||
Floating Point | Improve floating-point consistency | -mp |
Round floating-point results | -fp_port | |
Limit Complex range | -complex_limited_range | |
Check floating-point stack | -fpstkchk | |
Output Files | Generate assembler source file | -S |
Code Generation |
Generate position-independent code | -fpic |
Use Intel® processor extensions |
||
-axN | ||
-axB | ||
-axP | ||
Require Intel® processor extensions | -xK | |
-xN | ||
-xB | ||
-xP | ||
Generate traceback information | -traceback |
Libraries | Enable interprocedural optimization for single file compilation | -ip |
Link with static libraries | -static | |
Link Intel® libcxa C++ library statically | -static-libcxa | |
Link with dynamic libraries | -i_dynamic | |
Use no C++ libraries | -no_cpprt | |
Use no system libraries | -nodefaultlibs | |
gcc compatibility options | -cxxlib-icc | |
-cxxlib-gcc | ||
-fabi-version | ||
-gcc-version | ||
Process OpenMP directives | -openmp | |
-openmp_stubs | ||
Additional libraries | -l | |
Search directory for libraries | -L | |
Archiver options | -r |