Compiler Options Listed Alphabetically
The following is a comprehensive alphabetical list of compiler options. For a categorical list, see the Compiler Options Listed by Category.
Option | Purpose |
---|---|
Specifies a response file |
|
Lists the compiler options |
|
Specifies a directory to search to resolve file references passed to the #using directive |
|
Enable code analysis. |
|
Use SSE or SSE2 instructions in code generation (x64 only) |
|
Increases the number of addressable sections in an .obj file. |
|
Preserves comments during preprocessing |
|
Compiles without linking |
|
Produces an output file to run on the common language runtime |
|
Defines constants and macros |
|
Process documentation comments to an XML file. |
|
Copies preprocessor output to standard output |
|
Specifies the model of exception handling |
|
Copies preprocessor output to standard output |
|
Allows you to provide internal compiler error (ICE) information directly to the Visual C++ team. |
|
Sets stack size |
|
Produces code that is optimized for a specific x64 architecture or for the specifics of micro-architectures in both the AMD64 and Extended Memory 64 Technology (EM64T) architectures. |
|
Creates a listing file |
|
Sets listing file name |
|
Display full path of source code files passed to cl.exe in diagnostic text. |
|
Renames program database file |
|
Renames the executable file |
|
Preprocesses the specified include file |
|
Creates a mapfile |
|
Creates an object file |
|
Specify floating-point behavior. |
|
Specifies a precompiled header file name |
|
Generates browser files |
|
Forces the use of a file name as if it had been passed to the #using directive |
|
Merges injected code with source file |
|
Optimize for Itanium processor. vOnly available in the IPF cross compiler or IPF native compiler. |
|
Optimize for Itanium2 processor (default between /G1 and /G2). Only available in the IPF cross compiler or IPF native compiler. |
|
Optimizes code for Windows application |
|
Uses the __cdecl calling convention (x64 only) |
|
Activates stack probes |
|
Enables string pooling |
|
Calls hook function _pexit |
|
Calls hook function _penter |
|
Enables whole program optimization |
|
Enables minimal rebuild |
|
Enables run-time type information (RTTI) |
|
Uses the __fastcall calling convention (x64 only) |
|
Buffers security check |
|
Controls stack probes |
|
Supports fiber safety for data allocated using static thread-local storage |
|
Enables synchronous exception handling |
|
Enables function-level linking |
|
Same as /RTC1 |
|
Uses the __stdcall calling convention (x64 only) |
|
Restricts the length of external (public) names |
|
Lists the compiler options |
|
Forces parameters passed in registers to be written to their locations on the stack upon function entry. This compiler option is only for the x64 compilers (native and cross compile). |
|
Creates a hotpatchable image. |
|
Searches a directory for include files |
|
Changes the default char type |
|
Creates a dynamic-link library |
|
Creates a debug dynamic-link library |
|
Passes the specified option to LINK |
|
Creates an MSIL module. |
|
Creates a multithreaded DLL using MSVCRT.lib |
|
Creates a debug multithreaded DLL using MSVCRTD.lib |
|
Creates a multithreaded executable file using LIBCMT.lib |
|
Creates a debug multithreaded executable file using LIBCMTD.lib |
|
Suppresses display of sign-on banner |
|
Creates small code |
|
Creates fast code |
|
Controls inline expansion |
|
Disables optimization |
|
Uses global optimizations |
|
Generates intrinsic functions |
|
Enables #pragma omp in source code. |
|
Favors small code |
|
Favors fast code |
|
Uses maximum optimization (/Ob2gity /Gs) |
|
Omits frame pointer (x86 only) |
|
Suppresses _ftol when a conversion from a floating-point type to an integral type is required (x64 only) |
|
Does not generate sequences of instructions that give unexpected results, according to the errata for the B CPU stepping. (IPF only) |
|
Does not generate sequences of instructions that give unexpected results, according to the errata for the C CPU stepping. (IPF only) |
|
Do not use upper 96 floating-point registers. (IPF only) |
|
Generates an image with position dependent code (IPF only). |
|
Enhances performance for programs that do not create functions at runtime. (IPF only) |
|
Writes preprocessor output to a file |
|
Enables run-time error checking |
|
Displays a list of include files during compilation |
|
Specifies a C source file |
|
Specifies a C++ source file |
|
Removes a predefined macro |
|
Removes all predefined macros |
|
Sets the version string |
|
Suppresses or enables hidden vtordisp class members |
|
Uses best base for pointers to members |
|
Uses full generality for pointers to members |
|
Declares multiple inheritance |
|
Declares single inheritance |
|
Declares virtual inheritance |
|
Sets warning level |
|
Disables all warnings |
|
Enables all warnings, including warnings that are disabled by default |
|
Enables one-line diagnostics for error and warning messages when compiling C++ source code from the command line |
|
Detects 64-bit portability problems |
|
Ignores the standard include directory |
|
Ignores all other precompiled-header compiler options in the current build |
|
Creates a precompiled header file |
|
Places complete debugging information in all object files |
|
Injects a PCH reference when creating a debug library |
|
Uses a precompiled header file during build |
|
Generates C 7.0–compatible debugging information |
|
Disables language extensions |
|
Specifies standard behavior under /Ze |
|
Enables language extensions |
|
Generates function prototypes |
|
Includes debug information in a program database compatible with Edit and Continue |
|
Generates complete debugging information |
|
Removes default library name from .obj file (x64 only) |
|
Specifies the precompiled header memory allocation limit |
|
Packs structure members |
|
Checks syntax only |
|
Generates debuggable optimized code. Only available in the IPF cross compiler or IPF native compiler. |
See Also
Reference
Compiler Options
Setting Compiler Options