Microsoft CC ++ Compiler Options

xiaoxiao2021-03-06  39

Microsoft C / C Compiler Options

(Sorting / hangwire Published in vckbase 2003-2-26 9:12:35)

-optimization-

/ O1 Minimize Space Minimize Space / OP [-] Improve floating-point Consistency Improve Floating-Pt ConsistenCy / O2 Maximum Speed ​​Maximize Speed ​​/ OS Preferred Code Space Favor Code Space / OA Hypothesis No Alias ​​Assume No Aliasing / OT Preferred Code Speed Favor Code Speed ​​/ OB

Inline expansion (default n = 0) inline expansion (default n = 0) / OW assumes cross function alias Assum CROSS-FUNCTION AliaSing / OD Disable Optimization (Default) Disable Optimizations (DEFAULT) / OX Maximum Options. (/ OGITYB2 / GS) Maximum OPTS. (/ OGITYB1 / GS) / OG Enables Global Optimization Enable Global Optimization / OY [-] Enable Frame Pointer 省 省 Enable Frame Pointer Omiuses / Oi Enables Introduction Functions Enable Intrinsic Functions

- Code generation -

/ G3 80386 optimized Optimize for 80386 / g4 Optimization Optimize for 80486 / GR [-] Enable C RTTI Enable C RTTI / G5 Optimized Optimize for Pentium / G6 for Pentium Pro to optimize Optimize for Pentium Pro / GX [-] Enables C Abnormal Processing (Same as / EHSC) Enable C EH (Same AS / EHSC) / EHS Enable Synchronous C Exception Processing Enable Synchronous C EH / GD Optimized Optimize for Windows DLL / GB for Hybrid Models optimize (the default) optimize for blended model (default) / EHa enable asynchronous C exception handling enable asynchronous C EH / Gd __cdecl calling convention is __cdecl calling convention / EHc extern "C" default to nothrow / Gr as nothrow extern "C" defaults __fastcall calling convention __fastcall calling convention / Gi [-] enable incremental compilation enable incremental compilation / Gz __stdcall calling convention __stdcall calling convention / Gm [-] enable minimal rebuild enable minimal rebuild / GA optimization optimize for application for Windows Windows Application / Gf pools strings enable enable string pooling / QIfdiv [-] enable Pentium FDIV repair enable Pentium FDIV fix / GF enable read-only string pool enable read-only string pooling / QI0f [-] enable Pentium 0x0f repair enable Pentium 0x0f FIX / GY SLD LED Function Separate Functions for Linker / GZ Enables Run Time Debugger Enable Runtime Debug Checks / GH Enable Hook Function Call Enable Hook Function Call / GE Check Force Stack Checking for All Funcs / GS [NUM] Disable Stack Check Disable Stack Checking Calls - Output File -

/ Fa [file] Namedage set list file Name assembly listing file / fo

Name Object File Name Object File / FA [SC] Configuration Program List Configure Assembly Listing / FP

Name Preciphematical File Name Precompiled Header File / FD [File] Named .pdb file Name .pdb file / fr [file] Name source browser file Name Source Browser file / fe

Name executable name executable file / fr [file] Named extended. SBR file name extended .sbr file / fm [file] Name Map file Name Map File

- Prerequisitator -

/ Fi

Naming Force Contains file Name Forced include file / c Don't learn notes don't strip comments / u

Remove predefined macro Remove Predefined Macro / D

{= | #}

Define macro Define Macro / U Remove all predefined macro Remove All Predefined Macros / E Pretreatment orientation to standard output preprocess to stdout / i

Add to include Search Path / EP to include files to the standard output, do not bring the line number preprocess to stdout, no # line / x ignore the "Standard location" IGNORE "Standard Places" / P pre-processed to File preprocess to file

- Language -

/ Zi Enable Debug Information Enable Debugging Information / ZL Ignore. Obj Library Name OMIT DEFAULT LIBRARY NAME IN .Obj / Zi Enables "Edit and Continue" Enable Edit and Continue Debug INFO / ZG Generation Function Prototype Generate Function Prototypes / z7 Enable Old Commissioning Information Enable Old-Style Debug Info / ZS Only Syntax Check Only / Zd Only Ratinal Debugging Information Line Number Debugging Info Only / VD {0 | 1} Disable / Enable VTORDISP Disable / Enable VtORDISP / Zp [n] Package Structure on the N-byte boundary Pack Structs on n-byte boundary / VM

Pointer Type Type of Pointers To Members / ZA Disable Extensions (Implies / OP) Disable Extensions (Implies / OP) / Nobool Disable "Bool" keyword Disable "Bool" keyword / ze Enable extension (default) enable Extensions Default)

- Miscellaneous -

/?, / HELP Print this help message print this help message / c Compile, no link Compile ONLY, NO LINK / W

Set warning level (default n = 1) Set Warning Level (default n = 1) / h

Maximize External Name Length Max External Name Length / J Default Char Type is Unsigned Default Char Type IS UNSIGNED / NOLO Cancel Display Copyright Message Suppress Copyright Message / WX Whole Treat Warnings As Erroors / TC Compiles file to .c compile File as .c / yc [file] Create .PCH file create .pch file / tp Compiles the file to .cpp Compile file as .cpp / yd Put the debug information in each .Obj PUT Debug Info in Every .Obj / TC compiles all files to .c compile all files as .c / tp Compiles all files to .cpp compile all files as .cpp / yu [file] use .PCH file USE .PCH file / V

Setup String SET VERSION STRING / YX [File] Automatic .pch file automatic .pch / w Disable all warnings Disable All Warnings / ZM

Maximum memory allocation (default is%) MAX MEMORY Alloc (% of Default)

-link-

/ MD and MSVCRT.LIB links link with msvcrt.lib / mdd with msvcrtd.lib debug library links link with msvcrtd.lib debug lib / ml with libc.lib link Link with libc.lib / mld with libcd.lib debug library link LINK WITH LIBCD.LIB Debug LIB / MT and libcmt.lib link link with libcmt.lib / mtd with libcmtd.lib debug library links Link with libcmtd.lib debug lib / ld creation .dll create .dll / f Setting Stack Size Set Stack Size / Ldd creation .dll debug library create .dll deburs / link [linker option and library] [Linker Options and libraries]

转载请注明原文地址:https://www.9cbs.com/read-72967.html

New Post(0)