C/C ++ compiler options
-Optimization-
/O1 minimize space/O2 maximize speed
/Ob <n> inline extension (default n = 0)/OD disable optimization (default)
/Og enable global optimization/OI [-] enable internal functions
/OS preferred code space/Ot preferred code speed
/Ox maximization optimization/Oy [-] enabling frame pointer omitting
-Code Generation-
/GF Enable Read-Only string pool/Gm [-] Enable minimum regenerate
/Gy [-] Separation of linker functions/GS [-] Enable Security Check
/GR [-] Enable C ++ rtti/GX [-] Enable C ++ EH (same as/ESCS)
/Enable C ++ eh for EHS (no seh exception)/enable C ++ eh for EHA (W/seh exception)
/The default external "C" of EHC is nothrow.
/FP: <strong T [-] | fast | precise | strict> select floating point mode:
Counter T [-]-floating point exceptions are considered during code generation
Fast-"fast" floating point mode; low result predictability
(Press enter to continue)
Precise-"precise" floating point mode; predictable results
Strict-"strict" floating point mode (meaning/FP: Limit T)
Even if/FP: Internal T is used,/qfast_transcendentals generates inline internal FP
/GL [-] Enable link time code generation/GA for Windows application optimization
/Ge enforces stack check for all functions/Gs [num] controls stack check calls
/Gh enable _ penter function call/GH enable _ pexit function call
/GT generate fiber route security TLS access/RTC1 enable quick check (/RTCsu)
/RTCc to a smaller type check/RTCs stack frame runtime check
/RTCu uninitialized local usage check
/Clr [: option] is the compilation of the Common Language Runtime library, where option is:
Pure-generate an output file containing only IL (no local code can be executed)
Safe-generate verifiable output files that only contain IL
OldSyntax-Accept the managed extension Syntax of Visual C ++ 2002/2003
InitialAppDomain-enable Visual C ++ 2002 initial AppDomain Behavior
Noassembly-No assembly/Gd _ cdecl call Convention
/GR _ fastcall call Convention/GZ _ stdcall call Convention
/GZ Enable stack check (/RTCs)/qifist [-] Use fist instead of ftol ()
/Hotpatch ensures that the worker patches the function of the image.
/Arch: <SSE | sse2> the minimum requirement for CPU structure, which is one of the following:
SSE-enable commands that support sse cpu availability
Sse2-enable CPU-available commands that support sse2
/Qimprecise_fwaits only generates fwaits on the "try" boundary, instead of the "try" Internal
-Output file-
(Press enter to continue)
/Fa named assembly list file/FA [scu] configuration assembly list
/Fd naming. PDB file/Fe <file> naming executable files
/Fm name ing file/Fo <file> name object file
/Fp <file> naming precompiled header file/Fr naming source browser file
/FR name extension. SBR File
/Doc processes XML document comments and can select the name. xdc File
-Pre-processor-
/AI <dir> Add to Assembly search path/FU <file> force use of assembly/Module
/C do not extract comments/D <name >{|#} <text> definition macro
/E directs preprocessing to stdout/EP for preprocessing to standard output without # line
/P preprocessing to files/Fx merge inserted code into files
/FI <file> naming forces include file/U <name> remove predefined macros
/U remove all predefined macros/I <dir> to include search paths
/X ignore "standard location"
-Language-
/Zi enable debugging information/Z7 enable legacy debugging information
/Zp [n] encapsulate the structure on the n-byte boundary/Za disable Extension
/Ze enable extension (default)/Zl ignore the default library name in. OBJ
/Zg generates function prototype/Zs only performs syntax check
(Press enter to continue)
/Vd {0 | 1 | 2} disable/enable vtordisp/vm <x> pointer type to Member
/ZC: arg1 [, arg2] C ++ language compliance. The parameters here can be:
Forscope [-]-enforce the use of standard C ++ for range rules
Wchar_t [-]-wchar_t is of the native type, not typedef
/Zi enable "edit and continue" debugging information/OpenMP enable OpenMP 2.0 Language extension
-Miscellaneous-
@ <File> Option response file /?, /Help print this help message
/Bigobj generate extended object format/C compile only, no link
/Errorreport: Option reports internal compiler errors to Microsoft
None-do not send report prompt-prompt to send report now
Queue-the next time you log on as an administrator, the system prompts you to send a report (default)
Send-automatic report sending/full path name used in FC Diagnosis
/H <num> Maximum length of external names/J default char type is unsigned
/MP [n] A maximum of "n" processes can be used for compilation/nologo undisplaying of copyright messages
/ShowIncludes: display the file name containing/Tc <source file> to compile the file into. c
/Tp <source file> compile the file into. cpp/TC and compile all the files into. c
/TP compile all files into. cpp/V <string> set version strings
/W disable all warnings/wd <n> disable warning n
/We <n> treat warning n as an error/wo <n> issue a warning n
/W <l> <n> set a warning level for n 1-4/W <n> set a warning level (default value: n = 1)
/Wall enable all warnings/WL enable single row Diagnosis
/WX treats the warning as an error/Yc creates a. PCH File
(Press enter to continue)
/Yd puts the debugging information in each. OBJ./Yl [sym] inserts. PCH reference for the debugging library.
/Yu use the. PCH file/Y-Disable all PCH options
/Zm <n> maximum memory allocation (% by default)/Wp64 enable 64-bit Port location warning
-Link-
/LD create. DLL/LDd create. DLL debugging Library
/LN create. netmodule/F <num> set the stack size
/Link [Linker Options and libraries]/MD and msvcrt. Lib
/MT and libcmt. Lib links/MDD and msvcrtd. Lib debugging libraries links
/MTD and libcmtd. Lib debugging library links
-Code Analysis-
/Analyze [: WX-] Enable code analysis
WX--even if/wx is called, the code analysis warning should not be considered as an error