Compiler Options Cross Reference

Linux* Windows* Description Linux Default
-A- /QA- Remove all predefined macros. OFF
-Aname[(val)] /QAname[(val)] Create an assertion name having value val. OFF
-ansi /Za Enable/disable assumption of ANSI conformance. ON
-ax{K|W|N|B|P} /Qax{K|W|N|B|P} Generates specialized code for processor-specific codes K, W, N, B, and P while also generating generic IA-32 code.
  • K = IntelŪ PentiumŪ III and compatible Intel processors
  • W = Intel Pentium 4 and compatible Intel processors
  • N = Intel Pentium 4 and compatible Intel processors
  • B = Intel Pentium M and compatible Intel processors
  • P = Intel Pentium 4 processor with Streaming SIMD Extensions 3 (SSE3)
OFF
-C /C Don't strip comments. OFF
-c /c Compile to object (.o) only, do not link. OFF
-Dname[=value] /Dname[=value] Define macro. OFF
-E /E Preprocess to stdout. OFF
-fp /Oy- Use EBP-based stack frame for all functions. OFF
-g /Zi Produce symbolic debug information in object file. The -g option changes the default optimization from -O2 to -O0. OFF
-H /QH Print include file order. OFF
-help /help Print help message listing. OFF
-Idirectory /Idirectory 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
-ip_no_inlining /Qip_no_inlining Optimize the behavior of IP: disable full and partial inlining (requires -ip or -ipo[value]). OFF
-ipo[value] /Qipo[value] Enable multifile IP optimizations (between files). OFF
-ipo_obj /Qipo_obj Optimize the behavior of IP: force generation of real object files (requires -ipo[value]). OFF
-KPIC NA Generate position independent code (same as -Kpic). OFF
-Kpic NA Generate position independent code (same as -KPIC). OFF
-m NA Instruct linker to produce map file. OFF
-M /QM Generate makefile dependency information. OFF
-mp /Op[-] Maintain floating-point precision (disables some optimizations). OFF
-mp1 /Qprec Improve floating-point precision (speed impact is less than -mp). OFF
-nobss_init /Qnobss_init Disable placement of zero-initialized variables in BSS (use DATA). OFF
-nolib_inline /Oi[-] Disable inline expansion of intrinsic functions. OFF
-O /O2   OFF
-ofile /Fefile  or /Fofile Name output file. OFF
-O0 /Od Disable optimizations. OFF
-O1 /O1 Optimizes for speed. OFF
-O2 /O2   ON
-P /EP Preprocess to file. OFF
-pc32 /Qpc 32 Set internal FPU precision to 24-bit significand. OFF
-pc64 /Qpc 64 Set internal FPU precision to 53-bit significand. OFF
-pc80 /Qpc 80 Set internal FPU precision to 64-bit significand. ON
-prec_div /Qprec_div Improve precision of floating-point divides (some speed impact). OFF
-prof_dirdirectory /Qprof_dirdirectory Specify directory for profiling output files (*.dyn and *.dpi). OFF
-prof_filefilename /Qprof_filefilename Specify file name for profiling summary file. OFF
-prof_gen[x] /Qprof_genx Instrument program for profiling; with the x qualifier, extra information is gathered. OFF
-prof_use /Qprof_use Enable use of profiling information during optimization. OFF
-Qinstall dir NA Set dir as root of compiler installation. OFF
-Qlocation,str,dir /Qlocation,tool,path Set dir as the location of tool specified by str. OFF
-Qoption,str,opts /Qoption,tool,list Pass options opts to tool specified by str. OFF
-qp, -p NA Compile and link for function profiling with UNIX* gprof tool. OFF
-rcd /Qrcd Enable fast floating-point-to-integer conversions. OFF
-restrict /Qrestrict Enable the restrict keyword for disambiguating pointers. OFF
-S /S Generates assemblable files with .s suffix, then stops the compilation. OFF
-sox[-] /Qsox Enable [disable] saving of compiler options and version in the executable. -sox-
-syntax /Zs Perform syntax check only. OFF
-tpp5 /G5 Optimize for Pentium processor. OFF
-tpp6 /G6 Optimize for Pentium Pro, Pentium II and Pentium III processors. OFF
-tpp7 /G7 Optimize for Pentium 4 processor. OFF
-[no]traceback /[no]traceback Generate [do not generate] extra information in the object file that allows the display of source file traceback information at run time when a severe error occurs. OFF
-Uname /Uname Remove predefined macro. OFF
-unroll0 /Qunroll0 Disable loop unrolling. OFF
-V /QV Display compiler version information. OFF
-w /w Display errors. OFF
-w2 /W4 Enable remarks, warnings and errors.  
-Wbrief /WL Produces less verbose diagnostics. OFF
-wn /Wn Control diagnostics. Display errors (n=0). Display warnings and errors (n=1). Display remarks, warnings, and errors (n=2). OFF
-wdL1[,L2,...] /Qwd[tag] Disable diagnostics L1 through LN. OFF
-weL1[,L2,...] /Qwe[tag] Change severity of diagnostics L1 through LN to error. OFF
-wnn /Qwn[tag] Print a maximum of n errors. OFF
-Wp64 /Wp64 Print diagnostics for 64-bit porting. OFF
-wrL1[,L2,...] /Qwr[tag] Change severity of diagnostics L1 through LN to remark. OFF
-wwL1[,L2,...] /Qww[tag] Change severity of diagnostics L1 through LN to warning. OFF
-X /X Remove standard directories from include file search path. OFF
-x{K|W|N|B|P} /Qx{K|W|N|B|P} Generates specialized code for processor-specific codes K, W, N, B, and P while also generating generic IA-32 code.
  • K = IntelŪ PentiumŪ III and compatible Intel processors
  • W = Intel Pentium 4 and compatible Intel processors
  • N = Intel Pentium 4 and compatible Intel processors
  • B = Intel Pentium M and compatible Intel processors
  • P = Intel Pentium 4 processor with Streaming SIMD Extensions 3 (SSE3)
OFF
-Zp{1|2|4|8|16} /Zp[n] Packs structures on 1, 2, 4, 8, or 16 byte boundaries. OFF