-optimization-
/ O1
Minimize space
/ Op [-]
Improve floating point consistency
/ O2
Maximize speed
/ OS
Preferred code space
/ OA
Assume that there is no alias
/ OT
Preferably code speed
/ OB
Inline expansion (default n = 0)
/ OW
Assume cross function alias
/ OD
Disable optimization (default)
/ Ox
Maximize options. (/ OGITYB2 / GS)
/ Og
Enable global optimization
/ Io [-]
Enable frame pointer 省 省
/ Oi
Enable internal functions
- Code generation -
/ G3
Optimization for 80386
/ GH
Enable _pexit function call
/ G4
Optimization for 80486
/ GR [-]
Enable C RTTI
/ G5
Optimize Pentium
/ Gx [-]
Enable C EH (same as / eHSC)
/ G6
Optimization for PPRO, P-II, P-III
/ EHS
Enable C EH (no SEH exception)
/ GB
Optimize for mixed models (default)
/ Eha
Enable C EH (W / SEH exception)
/ GD
__cdecl call agreement
/ EHC
External "C" defaults to Nothrow
/ GR
__fastcall call agreement
/ Gt
Generate fiber safety TLS access
/ Gz
__stdcall call agreement
/ Gm [-]
Enable minimum regeneration
/ Ga
Optimize Windows applications
/ Gl [-]
Enable link time code generation
/ GF
Enable string pool
/ Qifdiv [-]
Enable Pentium FDIV repair
/ GF
Enable read-only string pool
/ Qi0f [-]
Enable pentium 0x0f fix
/ Gy
Separation of linker functions
/ Qifist [-]
Use fist instead of ftol ()
/ GZ
Enable stack check (/ RTCS)
/ RTC1
Enable Quick Check (/ RTCSU)
/ GE
Forced stack checking all functions
/ RTCC
Convert to a smaller type check
/ GS [NUM]
Control stack check call
/ RTCS
Stack frame check
/ GS
Enable security check
/ RTCU
Local usage check for uninited
/ GH
Enable _penter function call
/ CLR [: noassembly]
Compiling nossembly for public language operation time - no assembly
- Output file -
/ Fa [file]
Named a list of names
/ Fo
Name object file
/ Fa [sc]
Configuration program set list
/ Fp
Named pre-translated header file
/ Fd [file]
Name .pdb file
/ Fr [file]
Named source browser file
/ Fe
Name executable
/ Fr [file]
Named extension .sbr file
/ Fm [file]
Name mapping file
- Prerequisitator -
/ Ai
Add to the assembly search path
/ Fx
Combine the inserted code to the file
/ Fu
Forced assembly / module
/ Fi
Naming enforcement file
/ C
Do not take any comments
/ U
Remove predefined macro
/ D
Define macro
/ u
Remove all predefined macros
/ E
Prerequisite to stdout
/ I
Add to the search path
/ EP
Prerequisites to stdout, no #LINE
/ X
Ignore the "standard location"
/ P
Prerequisites to the file
- Language -
/ Zi
Enable debugging information
/ ZL
Ignore the default library name in .Obj
/ Zi
Enable "Edit and Continue" debugging information
/ Zg
Generate function prototype
/ Z7
Enable old debugging information
/ ZS
Only syntax check
/ Zd
Only linear debugging information
/ vd {0 | 1} Disable / Enable VTORDISP
/ Zp [n]
Packaging structure on the n-byte boundary
/ vm
Pointer to a member's pointer type
/ ZA
Disable expansion (Dark Index / OP)
/ nobool
Disable "BOOL" keyword
/ ZE
Enable extension (default)
/ Zc: arg1 [, arg2]
C language consistency, the parameters here can be: Forscope - Force the standard C for scope rules; Wchar_t - wchar_t is this type, not typedef
- Miscellaneous -
@
Option response file
/ wo
A warning N
/ ?, / HELP
Print this help message
/ w
Set a warning level for n 1-4
/ c
Compile, no link
/ W
Set warning level (default n = 1)
/ H
Maximum external name length
/ Wall
Enable all warnings
/ J
The default char type is unsigned
/ Wp64
Enable 64-bit port positioning warning
/ NOLOGO
Cancel the copyright message
/ Wx
Will the warning as an error
/ showincludes
Show containing file name
/ WL
Enable single line diagnosis
/ TC
Compile the file as .c
/ Yc [file]
Create a .pch file
/ TP
Compile files to .cpp
/ YD
Place the debug information in each .Obj
/ TC
Compile all files to .c
/ YL [SYM]
Insert a .PCH reference for the test library.
/ TP
Compile all files to .cpp
/ Yu [file]
Use the.pch file
/ V
Set the version string
/ Yx [file]
Automatic .pch
/ w
Disable all warnings
/ Y-
Disable all PCH options
/ WD
Disable warning N
/ Zm
Maximum memory allocation (default is%)
/ WE
Will warn n as an error
-link-
/ MD
Link with MSVCRT.LIB
/ MDD
Continued with the MSVCRTD.LIB debug library
/ Ml
Link with libc.lib
/ MLD
Continuous with libcd.lib debug library
/ MT
Link with libcmt.lib
/ MTD
Link with libcmtd.lib debug library
/ LD
Create .dll
/ F
Set stack size
/ LDD
Create a .dll debug library
/ LINK
[Link options and libraries]