Option |
Purpose |
@ |
Response File |
/? |
List compiler options |
/AI |
Specifies the directory to be searched when parsing a file that is passed to the # using command |
/Arch |
Use the SSE or sse2 command to generateCode |
/C |
Retained comments during preprocessing |
/C |
Compiled but not linked |
/CLR |
Enable C ++ managed extensions and generate output files running on the Common Language Runtime Library |
/D |
Define constants and macros |
/E |
Copy Preprocessor output to standard output |
/Eh |
Exception Handling Model |
/EP |
Copy Preprocessor output to standard output |
/F |
Set stack size |
/FA |
Create a list file |
/FA |
Set list file name |
/FD |
RenameProgramDatabase Files |
/Fe |
Rename an executable file |
/FI |
Pre-process specified contained files |
/FM |
Create a ing File |
/Fo |
Create object files |
/FP |
Precompiled header file name |
/FR /FR |
Generate a Browser file |
/Fu |
Force use of the file name, just as it has been passed to the # using command |
/FX |
Merge the inserted code with the source file |
/G3 |
Optimize the code to optimize the 386 processor. This option is disabled in Visual C ++ 5.0 and will be ignored by the compiler. |
/G4 |
Optimize the code to optimize the 486 processor. This option is disabled in Visual C ++ 5.0 and will be ignored by the compiler. |
/G5 |
Code optimization to optimize the Pentium processor |
/G6 |
Code optimization to optimize the Pentium Pro, Pentium II, and Pentium III Processors |
/G7 |
Code optimization for Pentium 4 or athlon. |
/GA |
Optimize windows application code |
/GB |
Equivalent to/g6; Set _ m_ix86 to 600 |
/GD |
Use_ CdeclCall conventions |
/Ge |
Activate stack Detection |
/GF /GF |
Enable string pool |
/GH |
Call Hook Functions_ Pexit |
/GH |
Call Hook Functions_ Penter |
/GL |
Enable full-Program Optimization |
/GM |
Enable minimum regenerate |
/GR |
Enable runtime type information (rtti) |
/GR |
Use_ FastcallCall conventions |
/GS |
Buffer Zone Security Check |
/GS |
Control Stack Detection |
/GT |
Support fiber-path security for data allocated using the local storage area of static threads |
/GX |
Enable synchronization Exception Handling |
/Gy |
Enable function-level Link |
/GZ |
Same as/rtc1 |
/GZ |
Use_ StdcallCall conventions |
/H |
Restrict the length of external (public) Names |
/Help |
List compiler options |
/I |
Search for files in the directory |
/J |
Change the defaultCharType |
/LD |
Create a dynamic link library |
/LDD |
Create a dynamic link library for debugging |
/Link |
Pass the specified option to link |
/MD |
Use msvcrt. lib to create multi-thread DLL |
/MDD |
Use msvcrtd. lib to create and debug multi-thread DLL |
/Ml |
Use libc. lib to create a single-thread Executable File |
/MLD |
Use libcd. lib to create and debug single-thread executable files |
/Mt |
Use libcmt. lib to create multi-thread executable files |
/MTD |
Use libcmtd. lib to create and debug multi-thread executable files |
/Nologo |
Cancel display logon copyright mark |
/O1 |
Create small code |
/O2 |
Create quick code |
/OA |
Assume there is no alias |
/Ob |
Control Inline expansion |
/OD |
Disable Optimization |
/Og |
Use global optimization |
/OI |
Generate internal functions |
/OP |
Improve floating point consistency |
/OS |
Code size first |
/OT |
Code speed first |
/Ow |
Assume that aliases are used in function calls. |
/Ox |
Maximum Optimization (/ob2gity/GS) |
/Oy |
Omit frame pointer |
/Qi0f |
Run the Pentium 0x0f command to fix the error. |
/Qifdiv |
Execute Pentium fdiv to fix the error |
/Qifist |
Cancel when converting from floating point type to integer type_ Ftol |
/P |
Write the pre-processor output to a file |
/RTC |
Enable runtime error check |
/Showincludes |
Display the list of included files during compilation |
/TC /TC |
Specify C source file |
/TP /TP |
Specify the C ++ source file |
/U |
Remove a predefined macro |
/U |
Remove all predefined macros |
/V |
Set version string |
/VD |
Cancel or enable hidden vtordisp class members |
/Vmb |
Use the best base for pointers to members |
/Vmg |
The pointer to a member is completely generic. |
/Vmm |
Declare multiple inheritance |
/VMS |
Declare single inheritance |
/Vmv |
Declare virtual inheritance |
/W |
Set warning level |
/W |
Disable all warnings |
/Wall |
Enable all warnings, including warnings disabled by default |
/WL |
Compile C ++ from the command lineSource codeEnables single-line Diagnosis of error messages and warning messages. |
/Wp64 |
Detection of 64-bit portability |
/X |
Ignore standard inclusion directory |
/Y- |
Ignore all other precompiled header compiler options currently generated |
/YC |
Create a precompiled header file |
/Yd |
Place complete debugging information in all object files |
/YL |
Insert a PCH reference when creating a debugging Library |
/Yu |
Use pre-compiled header files during generation |
/Yx |
Automatic pre-compilation Header Processing |
/Z7 |
Generate debugging information compatible with C 7.0 |
/Za |
Disable Language extension |
/ZC |
Specify standard behavior under/ze |
/ZD |
Generate row number |
/Ze |
Enable Language extension |
/ZG |
Generate function prototype |
/Zi |
Include debugging information in the program database compatible with "edit and continue" |
/Zi |
Generate complete debugging information |
/ZL |
Remove the default library name from the. OBJ file |
/ZM |
Specify the pre-compiled header memory allocation limit |
/ZP |
Encapsulation structure member |
/Zs |
Only check syntax |