Cross References of Compiler Options

This section provides a cross-reference table of compiler options used on Linux* operating systems.

Some compiler options are only available on certain systems, as indicated by these labels:

Label Meaning
i32 The option is available on IA-32-based systems
i32em The option is available on IA-32-based systems with IntelŪ Extended Memory 64 Technology (IntelŪ EM64T)
i64 The option is available on ItaniumŪ-based systems

If no label appears, the option is available on all supported systems.

If "only" appears in the label, the option is only available on the identified system.

For more details on the options, refer to the Alphabetical Compiler Options section.

For information on conventions used in this table, see Notation Conventions.

See Also

The IntelŪ C++ Compiler includes the IntelŪ Compiler Option Mapping tool. It provides a way to compare ("map") options between Windows and Linux and vice versa.

Linux Cross Reference

The following cross-reference table is based on the alphabetical order of Linux compiler options, which appear in the first column.

Linux Option Windows Equivalent Description Default
-[no-]alias-args /Qalias-args[-] enable(DEFAULT)/disable C/C++ rule that function arguments may be aliased -alias-args
-[no-]ansi-alias /Qansi-alias[-] enable/disable(DEFAULT) use of ANSI aliasing rules in optimizations -no-ansi-alias
-[no-]c99 /Qc99[-] enable/disable(DEFAULT) C99 support for C programs -no-c99
-[no-]complex-limited-range /Qcomplex-limited-range[-] enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations -no-complex-limited-range
-[no]debug [keyword] /[no]debug[:keyword] enable debug information and control output of enhanced debug information OFF
-[no-]fnsplit /Qfnsplit[-] enable/disable function splitting (enabled with -prof-use) OFF
-[no-]ftz /Qftz[-] enable/disable flush denormal results to zero OFF
-[no-]global-hoist /Qglobal-hoist[-] enable(DEFAULT)/disable external globals are load safe -global-hoist
-[no-]IPF-fltacc /QIPF-fltacc[-] enable/disable optimizations that affect floating point accuracy OFF
-[no-]IPF-fma /QIPF-fma[-] enable/disable the combining of floating point multiplies and add/subtract operations OFF
-[no-]IPF-fp-relaxed /QIPF-fp-relaxed[-] enable/disable use of faster but slightly less accurate code sequences for math functions OFF
-[no-]multibyte-chars /Qmultibyte-chars[-] provide support for multi-byte characters OFF
-[no-]prec-div /Qprec-div[-] improve precision of floating-point divides (some speed impact) OFF
-[no-]prec-sqrt /Qprec-sqrt[-] determine if certain square root optimizations are enabled OFF
-[no-]prefetch /Qprefetch[-] enable(DEFAULT)/disable prefetch insertion -prefetch
-[no]restrict /Qrestrict[-] enable/disable the 'restrict' keyword for disambiguating pointers OFF
-[no-]sox /Qsox[-] enable/disable(DEFAULT) saving of compiler options and version in the executable -no-sox
-[no]traceback /traceback specify whether the compiler generates data to allow for source file traceback information at runtime OFF
-A- /QA[-] remove all predefined macros OFF
-A<name>[(val)] /QA<name>[(val)] create an assertion 'name' having value 'val' OFF
-ansi /Za equivalent to GNU -ansi OFF
-auto-ilp32 /Qauto-ilp32 specify that the application cannot exceed a 32-bit address space (-ipo[n] required) OFF
-ax<codes> /Qax<codes> generate code specialized for processors specified by <codes> while also generating generic IA-32 code OFF
-C /C don't strip comments OFF
-c /c compile to object (.o) only, do not link OFF
-create-pch <file> /Yc[hfile] create precompiled header file OFF
-D<name>[=<text>] /D<name>[{=|#}<text>] define macro OFF
-dM /QdM output macro definitions in effect after preprocessing (use with -E) OFF
-E /E preprocess to stdout OFF
-EP /EP preprocess to stdout omitting #line directives OFF
-falias /Oa assume aliasing in program (DEFAULT) ON
-fargument-alias /Qalias-args same as -alias-args OFF
-fargument-noalias /Qalias-args- same as -alias-args- OFF
-fast /fast enable -xP -O3 -ipo -no-prec-div -static OFF
-fcode-asm /FAc produce assembly file with optional code annotations (requires -S) OFF
-fdata-sections /Gy same as -ffunction-sections OFF
-ffnalias /Ow assume aliasing within functions (DEFAULT) ON
-ffunction-sections /Gy separate functions for the linker (COMDAT) OFF
-fno-alias /Oa- assume no aliasing in program OFF
-fno-builtin /Oi- disable inline expansion of intrinsic functions OFF
-fno-fnalias /Ow- assume no aliasing within functions, but assume aliasing across calls OFF
-fno-rtti /GR- disable RTTI support OFF
-fp /Oy- disable using EBP as general purpose register OFF
-fp-port /Qfp-port round fp results at assignments & casts (some speed impact) OFF
-fpstkchk /Qfpstkchk enable fp stack checking after every function/procedure call OFF
-fsource-asm /FAs produce assembly file with optional source annotations OFF
-fstack-security-check /GS enable overflow security checks OFF
-fsyntax-only /Zs perform syntax and semantic checking only (no object file produced) OFF
-ftemplate-depth-<n> /Qtemplate-depth<n> control the depth in which recursive templates are expanded OFF
-ftrapuv /Qtrapuv trap uninitialized variables OFF
-funroll-loops /Qunroll unroll loops based on default heuristics OFF
-funsigned-char /J change default char type to unsigned OFF
-H /QH print include file order OFF
-help /help print this help message OFF
-I<dir> /I<dir> add directory to include file search path OFF
-inline-debug-info /Qinline-debug-info preserve the source position of inlined code instead of assigning the call-site source position to inlined code OFF
-ip /Qip enable single-file IP optimizations (within files) OFF
-IPF-flt-eval-method0 /QIPF-flt-eval-method0 floating point operands evaluated to the precision indicated by program OFF
-IPF-fp-speculation<mode> /QIPF-fp-speculation<mode> enable floation point speculations with the following <mode> conditions OFF
-ip-no-inlining /Qip-no-inlining disable full and partial inlining (requires -ip or -ipo) OFF
-ip-no-pinlining /Qip-no-pinlining disable partial inlining (requires -ip or -ipo) OFF
-ipo[n] /Qipo[n] enable multi-file IP optimizations (between files) OFF
-ipo-c /Qipo-c generate a multi-file object file (ipo_out.o) OFF
-ipo-S /Qipo-S generate a multi-file assembly file (ipo_out.s) OFF
-ipo-separate /Qipo-separate create one object file for every source file OFF
-ivdep-parallel /Qivdep-parallel make ivdep directives mean no loop carried dependencies OFF
-Kc++ /TP compile all source or unrecognized file types as C++ source files OFF
-long_double /Qlong-double enable 80-bit 'long double' OFF
-M /QM generate makefile dependency information OFF
-map-opts /Qmap-opts enable option mapping tool OFF
-MD /MD, /MDd preprocess and compile, generating output file containing dependency information ending with extension .d OFF
-MF<file> /QMF<file> generate makefile dependency information in file (must specify -M or -MM) OFF
-MG /QMG similar to -M, but treat missing header files as generated files OFF
-MM /QMM similar to -M, but do not include system header files OFF
-MMD /QMMD similar to -MD, but do not include system header files OFF
-mp /Op[-] maintain floating point precision (disables some optimizations) OFF
-mp1 /Qprec improve floating-point precision (speed impact is less than -mp) OFF
-MQ<target> /QMQ<target> same as -MT, but quotes special Make characters OFF
-MT<target> /QMT<target> change the default target rule for dependency generation OFF
-nobss-init /Qnobss-init disable placement of zero-initialized variables in BSS (use DATA) OFF
-nostdinc /X same as -X OFF
-O /O2 same as -O2 OFF
-o<file> /Fe<file> name output file OFF
-O0 /Od disable optimizations OFF
-O1 /O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit. OFF
-O2 /O2 enable optimizations (DEFAULT) ON
-O3 /O3 enable -O2 plus more aggressive optimizations that may not improve performance for all programs OFF
-Ob<n> /Ob<n> control inline expansion OFF
-openmp /Qopenmp enable the compiler to generate multi-threaded code based on the OpenMP directives OFF
-openmp-profile /Qopenmp-profile link with instrumented OpenMP runtime library to generate OpenMP profiling information OFF
-openmp-report{0|1|2} /Qopenmp-report{0|1|2} control the OpenMP parallelizer diagnostic level OFF
-openmp-stubs /Qopenmp-stubs enables the user to compile OpenMP programs in sequential mode OFF
-opt-report /Qopt-report generate an optimization report to stderr OFF
-opt-report-file<file> /Qopt-report-file<file> specify the filename for the generated report OFF
-opt-report-help /Qopt-report-help display the optimization phases available for reporting OFF
-opt-report-level[level] /Qopt-report-level[level] specify the level of report verbosity (min|med|max) OFF
-opt-report-phase<name> /Qopt-report-phase<name> specify the phase that reports are generated against OFF
-opt-report-routine<name> /Qopt-report-routine<name> reports on routines containing the given name OFF
-Os /Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit OFF
-P, -F /P preprocess to file omitting #line directives OFF
-parallel /Qparallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel OFF
-par-report{0|1|2|3} /Qpar-report{0|1|2|3} control the auto-parallelizer diagnostic level OFF
-par-threshold[n] /Qpar-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 OFF
-pc32 /Qpc32 set internal FPU precision to 24 bit significand OFF
-pc64 /Qpc64 set internal FPU precision to 53 bit significand OFF
-pc80 /Qpc80 set internal FPU precision to 64 bit significand (DEFAULT) ON
-pch /YX enable automatic precompiled header file creation/usage OFF
-prof-dir <d> /Qprof-dir <d> specify directory for profiling output files (*.dyn and *.dpi) OFF
-prof-file <f> /Qprof-file <f> specify file name for profiling summary file OFF
-prof-gen[x] /Qprof-gen[x] instrument program for profiling OFF
-prof-gen-sampling /Qprof-gen-sampling prepare code for use with profrun sample gathering tool OFF
-prof-use /Qprof-use enable use of profiling information during optimization OFF
-Qlocation,<str>,<dir> /Qlocation,<str>,<dir> set <dir> as the location of tool specified by <str> OFF
-Qoption,<str>,<opts> /Qoption,<str>,<opts> pass options <opts> to tool specified by <str> OFF
-rcd /Qrcd rounding mode to enable fast float-to-int conversions OFF
-S /S compile to assembly (.s) only, do not link (*I) OFF
-ssp /Qssp enable software-based speculative pre-computation OFF
-strict-ansi /Za strict ANSI conformance dialect OFF
-tcheck /Qtcheck generate instrumentation to detect multi-threading bugs OFF
-U<name> /U<name> remove predefined macro OFF
-unroll [n] /Qunroll[n] set maximum number of times to unroll loops OFF
-unroll 0 /Qunroll0 disable loop unrolling OFF
-unroll[n] /Qunroll[n] set maximum number of times to unroll loops OFF
-unroll0 /Qunroll0 disable loop unrolling OFF
-use-asm /Quse-asm[-] produce objects through assembler OFF
-use-pch <file> /Yu[hfile] use precompiled header file OFF
-V /QV display compiler version information OFF
-vec-report[n] /Qvec-report[n] control amount of vectorizer diagnostic information-opt-report generate an optimization report to stderr -vec-report1
-w /w disable all warnings OFF
-Wall /Wall enable all warnings OFF
-Wbrief /WL print brief one-line diagnostics OFF
-Wcheck /Wcheck enable more strict diagnostics OFF
-Wcontext-limit=<n> /Qcontext-limit<n> set maximum number of template instantiation contexts shown in diagnostic OFF
-wd<L1>[,<L2>,...] /Qwd<L1>[,<L2>,...] disable diagnostics L1 through LN OFF
-we<L1>[,<L2>,...] /Qwe<L1>[,<L2>,...] change severity of diagnostics L1 through LN to error OFF
-Werror /WX force warnings to be reported as errors OFF
-wn<n> /Qwn<n> print a maximum of n errors OFF
-Wp64 /Wp64 print diagnostics for 64-bit porting OFF
-wr<L1>[,<L2>,...] /Qwr<L1>[,<L2>,...] change severity of diagnostics L1 through LN to remark OFF
-ww<L1>[,<L2>,...] /Qww<L1>[,<L2>,...] change severity of diagnostics L1 through LN to warning OFF
-X /X remove standard directories from include file search path OFF
-x<codes> /Qx<codes> generate specialized code to run exclusively on processors indicated by <codes> as described above OFF
-Zp[n] /Zp[n] specify alignment constraint for structures (n=1,2,4,8,16) OFF

 

See Also

map-opts, Qmap-opts