|
-优化-
$ i+ s+ g/ s4 g4 d m/O1 最小化空间 minimize space 2 t+ W0 d! y, v+ j$ A% t
/Op[-] 改善浮点数一致性 improve floating-pt consistency - w$ `. S5 o, \! n0 _5 F
/O2 最大化速度 maximize speed . a- `5 B& J; {' G
/Os 优选代码空间 favor code space
- @: n8 w# V* [: l3 _ V i0 K9 K/Oa 假设没有别名 assume no aliasing 9 [: A& c% R9 |$ {( S& i
/Ot 优选代码速度 favor code speed
' u! m, J/ A6 r2 E. M; W+ u/Ob 内联展开(默认 n=0) inline expansion (default n=0) 9 v1 S7 X& Z; r$ B0 |
/Ow 假设交叉函数别名 assume cross-function aliasing
( k- l- }: ]9 u- A$ f/Od 禁用优化(默认值) disable optimizations (default) , y. e$ g9 m0 N' C0 Y
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) * L h: l' B$ M# A; H8 ^
/Og 启用全局优化 enable global optimization
{: P6 |$ n$ Q& e- ?8 f) g' l/Oy[-] 启用框架指针省略 enable frame pointer omission
1 B* A; T3 {* ]0 |2 R. S8 P5 W/Oi 启用内建函数 enable intrinsic functions
$ }; O6 O) z" @* a4 E; z+ z$ q- Y
-代码生成- " |. h! l4 q4 y' M, s
/G3 为 80386 进行优化 optimize for 80386
. h9 r, @5 f" K. Y5 z! f/G4 为 80486 进行优化 optimize for 80486
9 ?+ ~9 U9 Z+ v( o( s, C/GR[-] 启用 C++ RTTI enable C++ RTTI " [( c1 f5 v6 n, B8 }$ G! x! @) Z
/G5 为 Pentium 进行优化 optimize for Pentium
5 C2 A% Z+ J& t. D3 ]/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
2 ~& Y3 R& u8 S7 l6 T3 z0 b) y/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
. X6 a) B7 R7 T; v/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH . M4 t& w+ v/ e9 `6 @
/GD 为 Windows DLL 进行优化 optimize for Windows DLL
h% j- v9 b f O. d) Y k; F/GB 为混合模型进行优化(默认) optimize for blended model (default)
# b5 [* r3 E! g. z# S. R/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
- U1 E+ n/ A5 b) t- x/Gd __cdecl 调用约定 __cdecl calling convention - m3 w7 h: A* ~8 s9 s5 m! J
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
! v3 c3 V/ z( R) N% x+ Q) ^/ G/Gr __fastcall 调用约定 __fastcall calling convention
) ^# Q6 M# m& ]* R/Gi[-] 启用增量编译 enable incremental compilation 2 i. a6 Q4 j8 B- k7 t
/Gz __stdcall 调用约定 __stdcall calling convention
% P# v6 l9 C3 Z. f' I3 ~2 ]6 T. s Y/Gm[-] 启用最小重新生成 enable minimal rebuild
( B1 {8 ~) Y ?$ o/GA 为 Windows 应用程序进行优化 optimize for Windows Application , T9 H0 C$ q- {% e; y1 \; F
/Gf 启用字符串池 enable string pooling $ k1 v+ x' x, X
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
' B% N2 ]! I5 V8 @: R/GF 启用只读字符串池 enable read-only string pooling d( _ t% y& C9 h
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
4 I# n$ |2 d* j5 x% Y" G/Gy 分隔链接器函数 separate functions for linker
8 N l9 v1 ^/ P- s# @& ]: r9 }/GZ 启用运行时调试检查 enable runtime debug checks
/ G3 u5 p0 N( b9 R/Gh 启用钩子函数调用 enable hook function call $ N5 ^" i6 f* N! e# C
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
3 S6 o5 q) X2 E/Gs[num] 禁用堆栈检查调用 disable stack checking calls $ S4 O4 z& k( ^* F
& m. L% d7 J- ^# |+ Q3 z
-输出文件- ! `1 n1 S% z( r C6 x3 X
/Fa[file] 命名程序集列表文件 name assembly listing file
: W, F3 Y, Z' l- I/Fo 命名对象文件 name object file
5 \3 e& e7 J/ Z! D( I7 z8 m @/FA[sc] 配置程序集列表 configure assembly listing
- [2 l5 u" A9 X# ^' ]9 U/Fp 命名预编译头文件 name precompiled header file $ M# M7 z& b1 o& f: l
/Fd[file] 命名 .PDB 文件 name .PDB file
5 F" `# q( m9 ]# \/Fr[file] 命名源浏览器文件 name source browser file
9 a( j9 N! L: O( P- i& m; w/Fe 命名可执行文件 name executable file * q# m' X" I' r7 N& ]
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file w4 h3 Q0 @+ S
/Fm[file] 命名映射文件 name map file
! w: L: l9 y9 v# U6 W2 t: P, R
8 D% f6 Y0 P& t; y. I2 W-预处理器- + N: C2 x3 J4 D5 z% U1 O+ T
/FI 命名强制包含文件 name forced include file & C7 |5 o) ^+ t9 w$ m6 C9 `7 B" m
/C 不吸取注释 don't strip comments 0 o9 a( ^1 P) H4 H& m* b/ R
/U 移除预定义宏 remove predefined macro
6 Z: O6 y' Y2 s( v2 Z0 ^: W8 ?5 x5 {1 P/D{=|#} 定义宏 define macro ; s0 d- h3 i8 [9 |
/u 移除所有预定义宏 remove all predefined macros
' s9 c! B, w! j& `' T6 w% @/E 将预处理定向到标准输出 preprocess to stdout ~: n9 B/ {5 m
/I 添加到包含文件的搜索路径 add to include search path
& @+ f" Q/ A E& ~2 e" f/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line 1 Y. P; `/ n. n8 \8 j
/X 忽略“标准位置” ignore "standard places"
/ a3 ]! Y" E2 B; K/P 预处理到文件 preprocess to file - Y7 u* j* |& i8 v4 D4 D, z7 D
& V ]' _' ^: j0 Q1 w( }-语言- 1 [$ H0 _$ g, ]) m
/Zi 启用调试信息 enable debugging information
) b% Q" M n- [& ^4 |! Q, Q/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ $ V" R+ R4 Z; g& H) R3 o
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
: K$ n- k7 m7 I K1 J* E/Zg 生成函数原型 generate function prototypes % N3 O3 k* Y( V4 x
/Z7 启用旧式调试信息 enable old-style debug info
; Y: X* ?! n& Q/Zs 只进行语法检查 syntax check only
6 W6 L* J# ]& L0 l/Zd 仅要行号调试信息 line number debugging info only
! y; g, h6 x5 g' Y/ Q! M% H$ k/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
3 P1 ^) S6 X- K! O( p. s1 h/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary
* u; Y8 a0 F+ s! t4 x/vm 指向成员的指针类型 type of pointers to members ! k/ r9 \% {) a. ]8 T6 ~4 C: q
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) # C$ g2 X" ?9 i( U
/noBool 禁用“bool”关键字 disable "bool" keyword / ?+ Y$ U8 Q9 A
/Ze 启用扩展(默认) enable extensions (default) , k7 x' s( F4 E" y- y+ \* s
1 u* f9 o6 n0 J6 _% P- 杂项 -
1 t7 j m7 U1 q7 u* t/?, /help 打印此帮助消息 print this help message 5 I4 i, }$ D8 o2 ~4 x$ d
/c 只编译,不链接 compile only, no link ) d& O9 j$ w6 O! X4 W+ K7 R4 z
/W 设置警告等级(默认 n=1) set warning level (default n=1) 0 T8 S7 I$ O5 Q; F1 ]' P$ ^
/H 最大化外部名称长度 max external name length
8 ~+ a* o5 M7 l: ~, g$ _$ v/ L$ z/J 默认 char 类型是 unsigned default char type is unsigned
& L# p9 O" p3 `/ B& ?/nologo 取消显示版权消息 suppress copyright message 0 R$ g5 H7 z1 o4 F9 A$ L
/WX 将警告视为错误 treat warnings as errors + U2 H8 F0 ?) ]1 p& j# k/ i
/Tc 将文件编译为 .c compile file as .c
$ i+ G3 v8 p d- R7 Z+ s/Yc[file] 创建 .PCH 文件 create .PCH file 5 y" ^0 A+ A: ]! @- D5 r
/Tp 将文件编译为 .cpp compile file as .cpp
$ X8 o2 I) W, L' F( { ^' w! L+ ?/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
! d: v, X& M$ j" c* E7 J/TC 将所有文件编译为 .c compile all files as .c
- r5 ]: H# h0 d3 x K) i6 V/TP 将所有文件编译为 .cpp compile all files as .cpp % W2 z0 C- L+ h; }
/Yu[file] 使用 .PCH 文件 use .PCH file
+ b% R, T0 t; a8 a$ T/V 设置版本字符串 set version string * F y) J# Y# \9 F
/YX[file] 自动的 .PCH 文件 automatic .PCH ) B2 S3 N! ]7 s8 `
/w 禁用所有警告 disable all warnings
9 L1 U5 E, |6 t" Z4 S/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
: |7 R: ]9 m: T8 X' V0 `4 d) u8 f. y% f+ x) [5 T
-链接-
$ J9 f* U. c e% `/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB 3 K. l( ]0 F: t9 O
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib - r" P; g5 T4 Q2 J1 i* ?
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
4 S1 q `* j- `" h3 ]/ b- g; x/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
, }1 ?+ N( E9 y0 y* @/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
+ k" n( w5 K. ^: e; v/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
/ V- Y9 f* v& m/LD 创建 .DLL Create .DLL
8 m, A5 [2 y# A" i/F 设置堆栈大小 set stack size ; W1 m6 M+ s- o& }* a" ?/ _
/LDd 创建 .DLL 调试库 Create .DLL debug libary / h! P1 z& e7 n8 t" ?( Z
/link [链接器选项和库] [linker options and libraries] |
|