Professional Documents
Culture Documents
C-C-Plus-Compiler Options
C-C-Plus-Compiler Options
-OPTIMIZATION-
-CODE GENERATION-
/EHs enable C++ EH (no SEH exceptions) /EHa enable C++ EH (w/ SEH exceptions)
/GA optimize for Windows Application /Ge force stack checking for all funcs
/Gs[num] control stack checking calls /Gh enable _penter function call
/GH enable _pexit function call /GT generate fiber-safe TLS accesses
/RTC1 Enable fast checks (/RTCsu) /RTCc Convert to smaller type checks
/RTCs Stack Frame runtime checking /RTCu Uninitialized local usage checks
oldSyntax - accept the Managed Extensions syntax from Visual C++ 2002/2003
IA32 - use no enhanced instructions and use x87 for floating point
SSE2 - (default) enable use of instructions available with SSE2 enabled CPUs
-OUTPUT FILES-
/Fp<file> name precompiled header file /Fr[file] name source browser file
/doc[file] process XML documentation comments and optionally name the .xdc file
-PREPROCESSOR-
-LANGUAGE-
/Ze enable extensions (default) /Zl omit default library name in .OBJ
/ZW enable WinRT language extensions /ZI enable Edit and Continue debug info
-MISCELLANEOUS-
@<file> options response file /?, /help print this help message
/FC use full pathnames in diagnostics /H<num> max external name length
/w<l><n> set warning level 1-4 for n /W<n> set warning level (default n=1)
/Zm<n> max memory alloc (% of default) /Wp64 enable 64 bit porting warnings
-LINKING-
/MT link with LIBCMT.LIB /MDd link with MSVCRTD.LIB debug lib
-CODE ANALYSIS-
WX- - code analysis warnings should not be treated as errors even if /WX is invoked