VC compiler VS compiler switch meaning and description

Source: Internet
Author: User
Tags comments exception handling


/O1 Minimized space Minimize spaces

/op[-] Improved floating point consistency improve floating-pt consistency/o2 Maximum speed maximize /os Preferred code space favor /oa assumes no alias assume no aliasing /ot preferred code speed favor /ob Inline expansion (default n=0) inline expansion (defaults n=0) /ow assumes crossover function alias assume Cross-function aliasing /od Disable Optimizations (defaults) disable optimizations (default) /ox maximize options.   (/OGITYB2/GS) Maximum opts. (/OGITYB1/GS) /og enabling global optimization enable globally optimization /oy[-] Enable frame pointer omit enable frame pointer omission /oi Enabling the built-in function enable intrinsic functions -code Generation- /g3 for 80386 optimization optimize for 80386 /g4 for 80486 optimization optimize for 80486 /gr[-] Enabling C + + RTTI enable C + + RTTI /g5 for Pentium optimization optimize for Pentium /g6 optimized for Pentium Pro optimize for Pentium Pro /gx[-] Enable C + + exception handling (same as/EHSC) enable C + + EH (same AS/EHSC) /EHs Enabling synchronous C + + exception handling enable synchronous C + + EH /gd optimized for Windows DLLs optimize for Windows DLLs /GB optimized for mixed models (default) optimize for blended model /EHa Enabling asynchronous C + + exception handling enable asynchronous C + + EH /gd __cdecl calling convention __cdecl calling convention /ehc extern "C" defaults to nothrow extern ' C ' defaults to Nothrow /gr __fastcall calling convention __fastcall calling convention /gi[-] Enabling incremental compilation enable incremental compilation /gz __stdcall Calling convention __stdcall calling convention /gm[-] Enabling minimal rebuild enable minimal rebuild /ga optimized for Windows applications optimize for Windows application /GF enabling string pooling enable strings pooling /qifdiv[-] Enabling Pentium FDIV repair enable Pentium FDIV fix /GF Enabling read-only string pooling enable Read-only string pooling /qi0f[-] Enabling Pentium 0x0f repair enable Pentium 0x0f fix /gy separating linker functions separate functions for linker /gz enabling runtime Debug check Enable runtime Debug checks /gh enable hook function call /ge force stack check on all functions checking for all Funcs /gs[num] Disable stack check call disable stack checking calls -Output file- /fa[file] Name the assembly list file name assembly listing files /fo named object file name /FA[SC] Configuring the Assembly list Configure assembly listing /fp naming precompiled header Files Name precompiled header file /fd[file] named. PDB file name. PDB file /fr[file] Name Source browser file name sources browser files /fe Name Executable name executable file /fr[file] name extension. SBR file name extended. SBR file /fm[file] Name map file name map files -Preprocessor- /FI naming mandatory include files name forced include file /C do not draw comments don ' t strip comments / u remove pre-defined macro remove predefined macro /d{=|#} Defining macros define Macro / u Remove all pre-defined macros remove all predefined macros / e directs preprocessing to standard output preprocess to stdout /I add a search path to the include file add to include search paths /EP directs preprocessing to standard output, without line number preprocess to stdout, no #line / x ignores "standard position" ignore "standardized places" / p preprocessing to file Preprocess -language- /zi Enabling debug information enable debugging information /zl ignored. The default library name in OBJ is omit in. OBJ /zi "Edit and Continue" enabled debug information enable Edit and Continue Debug Info /ZG generating function prototypes generate functions Prototypes /z7 enabling legacy Debugging information enable Old-style Debug Info /zs only syntax check syntax check only /zd only the line number of the debug information lines debugging info only /vd{0|1} disable/enable Vtordisp disable/enable vtordisp /zp[n] on N-byte boundaries packing structure pack structs on n-byte boundary /vm Pointer to member type of pointers to members /za Disabling extensions (alluding to/op) disable extensions (IMPLIES/OP) /nobool disables the "bool" keyword disable "bool" keyword /ze enabling Extensions (default) enable extensions -Miscellaneous- /?,/help Print this help message / c only compile, not link compile only, no link /w set warning levels (default n=1) Set warning level (defaults n=1) / H maximizes external name lengths max external name length the/j default char type is unsigned default char, type is unsigned /nologo Suppress copyright message suppress /WX the warning as error treat warnings as errors /TC compiles the file to. C compile as. C /yc[file] created. PCH file Create. PCH file /TP compile the file as. cpp compile files as. cpp /yd put debug information on each. In OBJ, put debug info in every. OBJ /TC compiles all files into. C Compile all file as. C /TP compiles all files into. cpp compile all file as. cpp /yu[file] use. PCH file use. PCH file / v Set version string set /yx[file] Automatic. PCH file Automatic. PCH /w Disable All warnings disable all warnings /zm Maximum memory allocation (default%) Max Memory Alloc (% of default) -Link- /MD and MSVCRT. LIB link with MSVCRT. LIB /MDd and MSVCRTD. The LIB debug library links link with MSVCRTD. Lib Debug Lib /ml and LIBC. LIB link with LIBC. LIB /MLd and LIBCD. The LIB debug library links link with LIBCD. Lib Debug Lib /MT and LIBCMT. LIB link with LIBCMT. LIB /MTd and LIBCMTD. The LIB debug library links link with LIBCMTD. Lib Debug Lib /LD created. DLL Create. DLL /F Set stack size set stacks size /ldd created. DLL Debug Library Create. DLL Debug Libary /LINK [linker options and libraries] [linker options and libraries]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.