| Microsoft C/C ++ compiler options |
| -Optimization- |
| /O1 |
Minimize Space |
Minimize space |
| /Op [-] |
Improve floating point consistency |
Improve floating-pt consistency |
| /O2 |
Maximum speed |
Maximize speed |
| /OS |
Preferred code space |
Favor code space |
| /Oa |
Assume there is no alias |
Assume no aliasing |
| /Ot |
Code Speed Optimization |
Favor code speed |
| /Ob |
Inline expansion (n = 0 by default) |
Inline expansion (default n = 0) |
| /Ow |
Assume that the cross-function alias |
Assume cross-function aliasing |
| /Od |
Disable optimization (default) |
Disable optimizations (default) |
| /Ox |
Maximize options. (/Ogityb2/Gs) |
Maximum opts. (/Ogityb1/Gs) |
| /Og |
Enable Global Optimization |
Enable global optimization |
| /Oy [-] |
Enable frame pointer omitted |
Enable frame pointer omission |
| /Oi |
Enable built-in functions |
Enable intrinsic functions |
| -Code Generation- |
| /G3 |
Optimized for 80386 |
Optimizefor 80386 |
| /G4 |
Optimized for 80486 |
Optimizefor 80486 |
| /GR [-] |
Enable C ++ RTTI |
Enable C ++ RTTI |
| /G5 |
Optimize Pentium |
Optimize for Pentium |
| /G6 |
Optimize for Pentium Pro |
Optimize for Pentium Pro |
| /GX [-] |
Enable C ++ Exception Handling (same as/ESCS) |
Enable C ++ EH (same as/ESCS) |
| /EHs |
Enable synchronous C ++ Exception Handling |
Enable synchronous C ++ EH |
| /GD |
Optimize Windows DLL |
Optimize for Windows DLL |
| /GB |
Optimize the hybrid model (default) |
Optimize for blended model (default) |
| /EHa |
Enable asynchronous C ++ Exception Handling |
Enable asynchronous C ++ EH |
| /Gd |
_ Cdecl call conventions |
_ Cdecl calling convention |
| /EHc |
Extern "C" is nothrow by default |
Extern "C" defaults to nothrow |
| /Gr |
_ Fastcall call Convention |
_ Fastcall calling convention |
| /Gi [-] |
Enable incremental compilation |
Enable incremental compilation |
| /Gz |
_ Stdcall call Convention |
_ Stdcall calling convention |
| /Gm [-] |
Enable minimum regenerate |
Enable minimal rebuild |
| /GA |
Optimize Windows Applications |
Optimize for Windows Application |
| /Gf |
Enable string pool |
Enable string pooling |
| /QIfdiv [-] |
Enable Pentium FDIV repair |
Enable Pentium FDIV fix |
| /GF |
Enable Read-Only string pool |
Enable read-only string pooling |
| /QI0f [-] |
Enable Pentium 0x0f repair |
Enable Pentium 0x0f fix |
| /Gy |
Separate linker Functions |
Separate functions for linker |
| /GZ |
Enable runtime debugging check |
Enable runtime debug checks |
| /Gh |
Enable hook function call |
Enable hook function call |
| /Ge |
Force stack check for all functions |
Force stack checking for all funcs |
| /Gs [num] |
Disable stack check call |
Disable stack checking cballs |
| -Output file- |
| /Fa |
Named assembly list file |
Name assembly listing file |
| /Fo |
Named object file |
Name object file |
| /FA [SC] |
Configure the Assembly List |
Configure assembly listing |
| /Fp |
Naming precompiled header files |
Name precompiled header file |
| /Fd |
Name the. PDB File |
Name. PDB file |
| /Fr |
Name the source browser File |
Name source browser file |
| /Fe |
Naming executable files |
Name executable file |
| /FR |
Name extension. SBR File |
Name extended. SBR file |
| /Fm |
Name ing File |
Name map file |
| -Pre-processor- |
| /FI |
Mandatory File Inclusion |
Name forced include file |
| /C |
Do not extract comments |
Don't strip comments |
| /U |
Remove a predefined macro |
Remove predefined macro |
| /D {=| #} |
Definition macro |
Define macro |
| /U |
Remove all predefined macros |
Remove all predefined macros |
| /E |
Direct preprocessing to standard output |
Preprocess to stdout |
| /I |
Add to the search path containing the file |
Add to include search path |
| /EP |
Redirects preprocessing to standard output without line numbers |
Preprocess to stdout, no # line |
| /X |
Ignore "standard location" |
Ignore "standard places" |
| /P |
Preprocessing to files |
Preprocess to file |
| -Language- |
| /Zi |
Enable debugging information |
Enable debugging information |
| /Zl |
Ignore the default database name in. OBJ |
Omit default library name in. OBJ |
| /ZI |
Enable "edit and continue" for debugging information |
Enable Edit and Continue debug info |
| /Zg |
Generate function prototype |
Generate function prototypes |
| /Z7 |
Enable legacy debugging information |
Enable old-style debug info |
| /Zs |
Only perform syntax check |
Syntax check only |
| /Zd |
Only line number debugging information is required |
Line number debugging info only |
| /Vd {0 | 1} |
Disable/enable vtordisp |
Disable/enable vtordisp |
| /Zp [n] |
Wrap the structure on the n-byte Boundary |
Pack structs on n-byte boundary |
| /Vm |
Pointer type to a member |
Type of pointers to members |
| /Za |
Disable extension (/Op) |
Disable extensions (implies/Op) |
| /NoBool |
Disable the "bool" keyword |
Disable "bool" keyword |
| /Ze |
Enable extension (default) |
Enable extensions (default) |
| -Miscellaneous- |
| /?, /Help |
Print this help message |
Print this help message |
| /C |
Compile only, not link |
Compile only, no link |
| /W |
Set the warning level (n = 1 by default) |
Set warning level (default n = 1) |
| /H |
Maximize external Name Length |
Max external name length |
| /J |
The default char type is unsigned. |
Default char type is unsigned |
| /Nologo |
Cancel copyright display |
Suppress copyright message |
| /WX |
Treat warnings as errors |
Treat warnings as errors |
| /Tc |
Compile the file into. c |
Compile file as. c |
| /Yc |
Create a. PCH File |
Create. PCH file |
| /Tp |
Compile the file as. cpp |
Compile file as. cpp |
| /Yd |
Place debugging information in each. OBJ |
Put debug info in every. OBJ |
| /TC |
Compile all files into. c |
Compile all files as. c |
| /TP |
Compile all files into. cpp |
Compile all files as. cpp |
| /Yu |
Use the. PCH File |
Use. PCH file |
| /V |
Set version string |
Set version string |
| /YX |
Automatic. PCH File |
Automatic. PCH |
| /W |
Disable all warnings |
Disable all warnings |
| /Zm |
Maximum memory allocation (% by default) |
Max memory alloc (% of default) |
| -Link- |
| /MD |
Link to MSVCRT. LIB |
Link with MSVCRT. LIB |
| /MDd |
Link to MSVCRTD. LIB debugging Library |
Link with MSVCRTD. LIB debug lib |
| /ML |
Link to LIBC. LIB |
Link with LIBC. LIB |
| /MLd |
Link to the LIBCD. LIB debugging Library |
Link with LIBCD. LIB debug lib |
| /MT |
Link to LIBCMT. LIB |
Link with LIBCMT. LIB |
| /MTd |
Link to the LIBCMTD. LIB debugging Library |
Link with LIBCMTD. LIB debug lib |
| /LD |
Create. DLL |
Create. DLL |
| /F |
Set stack size |
Set stack size |
| /LDd |
Create a. DLL debugging Library |
Create. DLL debug libary |
| /Link |
[Linker Options and libraries] |
[Linker options and libraries] |