/EH{s|a}[c][-] |
Specifies the model of exception handling |
/G3 |
Optimizes code to favor the 386 processor. Phased out in Visual C++ 5.0, the compiler will ignore this option |
/G4 |
Optimizes code to favor the 486 processor. Phased out in Visual C++ 5.0, the compiler will ignore this option |
/G5 |
Optimizes code to favor the Pentium |
/G6 |
Optimizes code to favor the Pentium Pro |
/GA |
Optimizes code for Windows application |
/GB |
Optimizes code to favor the Pentium processor. Blends optimizations for the 80386 (/G3), 80486 (/G4), Pentium (/G5), and Pentium Pro (/G6) options. |
/Gd |
Uses the __cdecl calling convention |
/Ge |
Activates stack probes |
/GF
/Gf |
Enable string pooling |
/Gh |
Calls hook function, __penter |
/Gi |
Enables incremental compilation |
/Gm |
Enables minimal rebuild |
/GR |
Enables run-time type information (RTTI) |
/Gr |
Uses the __fastcall calling convention |
/Gssize |
Controls stack probes |
/GT |
Supports fiber safety for data allocated using static thread-local storage |
/GX[–] |
Enables synchronous exception handling |
/Gy |
Enables function-level linking |
/Gz |
Uses the __stdcall calling convention |
/MD |
Creates a multithreaded DLL, using MSVCRT.LIB |
/MDd |
Creates a debug multithreaded DLL, using MSVCRTD.LIB |
/ML |
Creates a single-threaded executable file, using LIBC.LIB |
/MLd |
Creates a debug single-threaded executable file, using LIBCD.LIB |
/MT |
Creates a multithreaded executable file, using LIBCMT.LIB |
/MTd |
Creates a debug multithreaded executable file, using LIBCMTD.LIB |
/C |
Preserves comments during preprocessing |
/Dname[= | # [{string | number}] ] |
Defines constants and macros |
/E |
Copies preprocessor output to standard output |
/EP |
Copies preprocessor output to standard output |
/Flfilename |
Preprocesses the specified include file |
/Idirectory |
Searches a directory for include files |
/P |
Writes preprocessor output to a file |
/Usymbol |
Removes a predefined macro |
/u |
Removes all predefined macros |
/X |
Ignores the standard include directory |
/ZI |
Includes debug information in a program database compatible with Edit and Continue. |
/vd{0|1} |
Suppresses or enables hidden vtordisp class members |
/vmb |
Uses best base for pointers to members |
/vmg |
Uses full generality for pointers to members |
/vmm |
Declares multiple inheritance |
/vms |
Declares single inheritance |
/vmv |
Declares virtual inheritance |
/Za |
Disables language extensions |
/Ze |
Enables language extensions |
/Zg |
Generates function prototypes |
/Zl |
Removes default library name from .OBJ file |
/Zpn |
Packs structure members |
/Zs |
Checks syntax only |
/Fnumber |
Sets stack size |
/LD |
Creates a dynamic-link library |
/LDd |
Creates a debug dynamic-link library |
/link option |
Passes the specified option to LINK |
/MD |
Compiles to create a multithreaded DLL, using MSVCRT.LIB |
/MDd |
Compiles to create a debug multithreaded DLL, using MSVCRTD.LIB |
/ML |
Compiles to create a single-threaded executable file, using LIBC.LIB |
/MLd |
Compiles to create a debug single-threaded executable file, using LIBCD.LIB |
/MT |
Compiles to create a multithreaded executable file, using LIBCMT.LIB |
/MTd |
Compiles to create a debug multithreaded executable file, using LIBCMTD.LIB |