-optimization-
/ O1 minimum space Minimize Space
/ OP [-] Improve floating point couponity Improve floating-pt consistency
/ O2 maximizes speed Maximize Speed
/ OS preferred code space Favor code SPACE
/ OA assumption No alias Assume no aliasing
/ OT preferred code speed Favor code speed
/ OB inline expansion (default n = 0) inline expansion (default n = 0)
/ OW assumes cross function alias Assume cross-function aliansing
/ OD Disable Optimization (Default) Disable Optimizations (Default)
/ Ox maximize options. (/ OGITYB2 / GS) Maximum OPTS. (/ OGITYB1 / GS)
/ Og Enable Global Optimization ENABLE Global Optimization
/ O [-] Enable Frame Pointer 省 省 Enable Frame Pointer Omius
/ OI Enable Intrinsic Functions
- Code generation -
/ G3 for 80386 optimization Optimize for 80386
/ G4 to optimize Optimize for 80486 for 80486
/ GR [-] Enable C RTTI Enable C RTTI
/ G5 optimized OptiMize for Pentium for Pentium
/ G6 optimized Optimize for Pentium Pro in Pentium Pro
/ Gx [-] Enable C exception processing (same as / eHSC) Enable C EH (Same AS / EHSC)
/ EHS enable synchronous C exception handler ENABLE SYNCHRONOUS C EH
/ GD optimizes Optimize for Windows DLL for Windows DLL
/ GB Optimized for mixed models (default) Optimize for Blended Model (Default)
/ EHA enable asynchronous C exception handler ENABLE ASYNCHRONOUS C EH
/ Gd __cdecl call agreement __cdecl calling convention
/ EHC EXTERN "C" defaults to Nothrow Extern "C" defaults to not nothingrow
/ GR __FASTCALL Call Convention_FastCall Calling Convention
/ Gi [-] Enable incremental compilation Enable Incremental CompiLation
/ Gz __stdcall call agreement __stdcall calling convention
/ Gm [-] Enable minimum regeneration enable minimal rebuild
/ Ga optimizes Optimize for Windows Application for Windows Applications
/ GF Enable string ENABLE STRING POOLING
/ Qifdiv [-] Enable Pentium FDIV Repair Enable Pentium FDIV FIX
/ GF Enable read-only string ENABLE READ-ONLY STRING POOLING
/ Qi0f [-] Enable Pentium 0x0f Repair Enable Pentium 0x0f Fix
/ Gy Slip Linkr Function Separate Functions for Linker
/ GZ Enable runtime debugging check Enable Runtime Debug Checks / GH Enable Hook Function Call Enable Hook Function Call
/ GE for all function forced stack check Force Stack Checking for All Funcs
/ GS [NUM] Disable Stack Check Disable Stack Checking Calls
- Output file -
/ Fa [file] Namedage set list file Name assembly Listing File
/ Fo Named Object File Name Object File
/ Fa [sc] Configuration Program Set List Configure Assembly LISTING
/ Fp Name Preface File Name Precompiled Header File
/ Fd [file] named.pdb file name .pdb file
/ Fr [file] named source browser file Name Source Browser File
/ FE Named Optical Document Name Executable File
/ Fr [file] named extension. SBR file Name Extended .sbr File
/ Fm [file] Name Mapping file Name Map file
- Prerequisitator -
/ Fi named forced file Name Forced Include File
/ C does not take note of don't strip comments
/ U Remove predefined macro Remove Predefined Macro
/ D {= | #} Defining macro Define Macro
/ u Remove all predefined macro Remove All Predefined Macros
/ E sets the pre-processed to standard output preprocess to stdout
/ I Add to Search Path containing File Add to include Search Path
/ EP will oriented the pretreatment to standard output, do not bring the line number preprocess to stdout, no #line
/ X ignore the "Standard Location" Ignore "Standard Places"
/ P Prerequisites to File preprocess to file
- Language -
/ Zi Enable Debugging Information Enable Debugging Information
/ Zl ignores. The default library name omit default library name in .Obj
/ Zi Enables the "Edit and Continue" Features of Debug Information Enable Edit and Continue Debug Info
/ Zg generated function prototype Generate Function Prototype
/ Z7 Enable Old Commissioning Information Enable Old-Style Debug Info
/ Zs only perform syntax check SYNTAX Check ONLY
/ Zd only the line number debugging information LINE Number debugging Info ONLY
/ vd {0 | 1} Disable / Enable VTORDISP Disable / Enable VTORDISP
/ Zp [n] Package Structure on the N-byte boundary Pack Structs on n-byte boundary
/ vm pointing to a member's pointer type Type of Pointers to Member
/ ZA disabled expansion (DET / OP) Disable Extensions (Implies / OP)
/ NOBOOL Disable "Bool" keyword Disable "Bool" Keyword
/ ZE enabled extension (default) Enable Extensions (Default)
- Miscellaneous -
/?, / HELP Print this help message Print this Help Message
/ c only compile, no links compile only, no link / w Set warning level (default n = 1) set warning level (default n = 1)
/ H Maximize External Name Length Max External Name Length
/ J default char type is unsigned default char type is unsigned
/ NOLOGO Cancel Display Copyright News Suppress Copyright Message
/ Wx will warned as an error Treat Warnings as ErrorS
/ TC compiles the file to .c compile file as .c
/ Yc [file] creation .pch file create .pch file
/ TP compiles the file to .cpp compile file as .cpp
/ YD puts the debug information in each .Obj PUT Debug Info in Every .Obj
/ TC compiles all files to .c compile all files as .c
/ TP compiles all files to .cpp compile all files as .cpp
/ Yu [file] use .PCH file USE.PCH FILE
/ V Settings Version Strings SET VERSION STRING
/ Yx [file] automatic.pch file automatic .pch
/ w Disable all warning Disable All Warnings
/ ZM maximum memory allocation (default is%) Max Memory Alloc (% of default)
-link-
/ MD with MSVCRT.LIB links link with msvcrt.lib
/ MDD with MSVCRTD.LIB debug library links link with msvcrtd.lib debug lib
/ Ml and libc.lib link link with libc.lib
/ MLD with libcd.lib debug library link link with libcd.lib debug lib
/ MT and libcmt.lib link Link with libcmt.lib
/ MTD with libcmtd.lib debug library links link with libcmtd.lib debug lib
/ Ld creation .dll create .dll
/ F Setting Stack Size Set Stack Size
/ Ldd creation .dll debug library create .dll debric
/ link [linker options and libraries] [Linker Options and libraries]]