|
-优化-
6 d& X4 `; K7 A/O1 最小化空间 minimize space - ?* A: Z9 [8 v3 r
/Op[-] 改善浮点数一致性 improve floating-pt consistency
3 H7 W6 u0 X1 C( D+ t# g, O" [/O2 最大化速度 maximize speed 6 Q8 |; \- h/ |5 {0 {' R* s2 g
/Os 优选代码空间 favor code space
% D6 z& l: Y/ z' v, M( Y1 l/Oa 假设没有别名 assume no aliasing . I6 r: R: S; p& s+ C/ p$ c
/Ot 优选代码速度 favor code speed
3 p: D0 v9 K9 I0 [" }: G( P0 o* I/Ob 内联展开(默认 n=0) inline expansion (default n=0)
; w% j& j( ?# I) h1 S8 ?: B/Ow 假设交叉函数别名 assume cross-function aliasing
5 \4 S4 B6 D8 l2 K/Od 禁用优化(默认值) disable optimizations (default)
* O% Z/ ^, K4 }% k/ M/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
. B" V# q$ K5 r) G* I. Z6 }/Og 启用全局优化 enable global optimization
1 u: c) J7 e! }: r- ?' U/Oy[-] 启用框架指针省略 enable frame pointer omission g6 m0 Z6 A# H K
/Oi 启用内建函数 enable intrinsic functions
' d* o4 s# X8 C! |7 ^3 l7 }1 d, t$ M; J* i
-代码生成-
7 V) d& D8 q+ ]/G3 为 80386 进行优化 optimize for 80386
' L4 ^% d9 D: Q! I4 r' _/G4 为 80486 进行优化 optimize for 80486 : j! k# H! ?; A F/ k- J
/GR[-] 启用 C++ RTTI enable C++ RTTI + k: Y+ ~' a- w5 O0 F
/G5 为 Pentium 进行优化 optimize for Pentium
0 t2 P* u- _( I; w% x' y7 b$ j0 w/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
) W) s' V3 U" q! C, Q* r/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
$ p% `% `; U( Z- S m: I |4 b6 G5 t/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH
0 h2 T, ]3 ~6 T3 B; ^( k2 _0 `0 X/GD 为 Windows DLL 进行优化 optimize for Windows DLL . N8 ?5 b- C2 |6 T) l6 l' ?9 B; v
/GB 为混合模型进行优化(默认) optimize for blended model (default) 6 l4 x* ^# v9 V. E! I
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
- D/ j4 D$ y3 Q4 f }3 [6 i$ j/Gd __cdecl 调用约定 __cdecl calling convention
- t3 C0 d: z+ d1 S1 G$ |0 h$ ?/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
/ h3 x8 y2 g {; T# [/Gr __fastcall 调用约定 __fastcall calling convention 0 u) H$ j h7 Z
/Gi[-] 启用增量编译 enable incremental compilation 8 T# Q. y$ G$ ^
/Gz __stdcall 调用约定 __stdcall calling convention
0 x9 E: j1 Z! C, e/Gm[-] 启用最小重新生成 enable minimal rebuild - Z+ D# v' B1 F% Q# {/ U1 Q& y
/GA 为 Windows 应用程序进行优化 optimize for Windows Application - a& b3 [3 |6 |; e* |" L% k: l# U
/Gf 启用字符串池 enable string pooling
! r4 L0 K9 d0 V2 C0 S/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix - Y3 |/ M% k9 v" u- s1 {5 Z
/GF 启用只读字符串池 enable read-only string pooling
1 S$ i# {$ K+ _; q9 m% }/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix / s& I, b1 q$ M
/Gy 分隔链接器函数 separate functions for linker
7 B" N/ O( K* i* j6 Z! i' L5 H7 U4 a/GZ 启用运行时调试检查 enable runtime debug checks : o% k$ w) I6 [$ ^2 {& e" u. p
/Gh 启用钩子函数调用 enable hook function call
0 K7 R3 T. a! a! T k" O# w( L+ r! w/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
- y, E( I9 x* K/Gs[num] 禁用堆栈检查调用 disable stack checking calls
6 ^1 ~7 h+ A# `. ]( `
+ e* J! c: C( b- v# i9 r) g-输出文件-
$ u5 f5 ]% J* q/ O/Fa[file] 命名程序集列表文件 name assembly listing file
" S. Z% v, ^& n" ^2 n/Fo 命名对象文件 name object file
4 K+ u* I* M5 s/FA[sc] 配置程序集列表 configure assembly listing
! {" P+ u+ J) ~7 _! Y' {$ y$ g# y" Q/Fp 命名预编译头文件 name precompiled header file 1 F' B7 K$ U; D' _- v0 z4 N0 w5 X
/Fd[file] 命名 .PDB 文件 name .PDB file , F& t5 A& F& h3 R
/Fr[file] 命名源浏览器文件 name source browser file
0 @* x# D/ k' S+ l/Fe 命名可执行文件 name executable file 4 y! q' E% V5 P: d2 T9 u
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
& m/ ]; Q. d; D. c% c4 f [/Fm[file] 命名映射文件 name map file 8 I/ l' J( _% ~& m' t% i
. a6 j# m# X/ H& v1 {0 H
-预处理器-
4 D: }' {* f0 r0 C5 i3 f4 N/FI 命名强制包含文件 name forced include file
& a& Y; k( k3 M b/C 不吸取注释 don't strip comments
$ S' I+ z: g7 ^$ F+ F0 x: H+ m/U 移除预定义宏 remove predefined macro
7 @* o0 Q; l5 x6 v6 {' M/D{=|#} 定义宏 define macro
- A% j8 z' Z; e0 R3 U/u 移除所有预定义宏 remove all predefined macros
% B' X& U' M! k1 ^/E 将预处理定向到标准输出 preprocess to stdout
! y5 G( U- T/ x4 i/I 添加到包含文件的搜索路径 add to include search path ' A+ r' \. g$ y
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
x( R h$ r& U O/X 忽略“标准位置” ignore "standard places" 1 ?5 H. B8 d' B+ y9 W) L8 q
/P 预处理到文件 preprocess to file 3 ]' ?1 t$ T1 {7 a" s( F5 z4 z' r8 y
# V! O% ` H+ } a# T+ e
-语言- + D0 i. m8 M2 i+ _
/Zi 启用调试信息 enable debugging information
# k& K4 M1 g# b/ _" G6 u% _/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ " d2 K# R4 |7 e# G+ Q
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info : a+ t" E% h5 P+ s/ e- |: F
/Zg 生成函数原型 generate function prototypes
7 C" a7 g/ \7 L- r& l4 K/Z7 启用旧式调试信息 enable old-style debug info ; }& q: Z$ k, B- |: g7 K1 ~# [ @
/Zs 只进行语法检查 syntax check only " w$ z3 B. B& G" W' w( A$ w3 Q
/Zd 仅要行号调试信息 line number debugging info only
1 i O7 o( v0 d; }* R- J% [- l+ @/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp ' x3 j; }1 T+ t+ g
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary d" ?/ G) a. W" e3 I6 g4 v
/vm 指向成员的指针类型 type of pointers to members ! l/ a) S5 k6 x9 U% z
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
# c' f' E5 V6 c3 V/noBool 禁用“bool”关键字 disable "bool" keyword 0 I9 K4 z6 N8 x1 R+ Q
/Ze 启用扩展(默认) enable extensions (default) 5 W! a0 |0 G6 y8 x8 U
a& D F* v* E Y. f- B7 W5 j! F
- 杂项 - 8 p! i% \- x- o/ Z/ s
/?, /help 打印此帮助消息 print this help message : _* v- D1 s1 ^7 l0 d1 x
/c 只编译,不链接 compile only, no link
) x- x w3 @. {* s2 A/W 设置警告等级(默认 n=1) set warning level (default n=1) * @8 M4 V9 G$ I ?0 b4 |
/H 最大化外部名称长度 max external name length * L% P( s) Q7 E, O
/J 默认 char 类型是 unsigned default char type is unsigned " u2 L$ M/ O6 }$ ]) `
/nologo 取消显示版权消息 suppress copyright message
% C# m% z3 Z* Y* [4 u+ J, o2 s/WX 将警告视为错误 treat warnings as errors 9 s7 p: N# K- A4 d
/Tc 将文件编译为 .c compile file as .c
( i9 Y+ n. ?2 N" E3 z( I% J$ l/Yc[file] 创建 .PCH 文件 create .PCH file
; E% N$ M' k5 Y# | F/ Z/Tp 将文件编译为 .cpp compile file as .cpp 7 `5 U1 k2 ^- t8 b2 {
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ + _- ?" T7 F; q% W' g6 D* h
/TC 将所有文件编译为 .c compile all files as .c ( Y- @+ l9 Y- t+ a5 H
/TP 将所有文件编译为 .cpp compile all files as .cpp # ^4 i8 C( a5 |) q4 |; {4 y) W
/Yu[file] 使用 .PCH 文件 use .PCH file
U2 \% k; r( q; k' v4 X2 G/V 设置版本字符串 set version string
2 z3 U( H* r7 B, e; g! w/YX[file] 自动的 .PCH 文件 automatic .PCH ' @& u6 Y6 ?; G& R7 F, g' o0 `
/w 禁用所有警告 disable all warnings / T# O! e* a) B
/Zm 最大内存分配(默认为 %) max memory alloc (% of default) ( F2 u6 m) m+ _1 @0 a
; j7 ~( Q6 e2 e( ~
-链接- 1 y& a+ A+ u8 W7 r$ }+ l$ l; {0 l
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB 7 s5 I" o0 a. p" o
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib % Y% X$ `8 f5 |: W
/ML 与 LIBC.LIB 链接 link with LIBC.LIB 9 z# E: L' |+ m& [
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
0 k, x, \" n- @/ \3 p2 ^. @. q/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB " q# O4 T" o6 C4 r) B% g, V/ l8 J
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
& N' M7 {1 B. A* n1 g F" @" f$ X8 a/LD 创建 .DLL Create .DLL 1 R' U8 d" M, V7 [% K! t* }7 w0 F
/F 设置堆栈大小 set stack size
3 t5 J" y4 ~# Q# J/LDd 创建 .DLL 调试库 Create .DLL debug libary
- h; X; E9 `5 U/link [链接器选项和库] [linker options and libraries] |
|