|
|
-优化-
% z% a% t% Q* S) ]' [9 n- r/O1 最小化空间 minimize space
' {" B0 J# M7 g! R% G4 x+ j! H! \! C5 [/Op[-] 改善浮点数一致性 improve floating-pt consistency ! s# |: b# N' c! b6 w3 p
/O2 最大化速度 maximize speed 8 o( s1 N z6 b) x$ R0 E9 \9 k3 b
/Os 优选代码空间 favor code space
* S; e& M& ^" q4 I9 D' D: n3 @9 x1 D! E/Oa 假设没有别名 assume no aliasing
/ l+ D$ _8 s/ J8 D' ?/Ot 优选代码速度 favor code speed - T4 `. s4 q: J- _8 |# d& }- p7 R
/Ob 内联展开(默认 n=0) inline expansion (default n=0) . l# s; B! T6 o7 j' F% Y
/Ow 假设交叉函数别名 assume cross-function aliasing 4 f4 ]7 O7 G( e ^' ~
/Od 禁用优化(默认值) disable optimizations (default) . |$ W/ y+ v1 |* c/ n- V
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
9 a+ d7 H- a& f. S/Og 启用全局优化 enable global optimization 5 B) N! t1 E: Y( U% a# C
/Oy[-] 启用框架指针省略 enable frame pointer omission
4 d* T; }. N# }# v- g* y3 n/Oi 启用内建函数 enable intrinsic functions
! q3 Q3 c2 |: m+ u& X% U8 w b2 x7 p. \; E' D' s O8 f) q7 y \4 p
-代码生成- 9 i; w7 P. I% W3 g" y. x/ |
/G3 为 80386 进行优化 optimize for 80386 6 s9 S/ d- j- g2 D2 L
/G4 为 80486 进行优化 optimize for 80486
. E- e) i* Q7 a& ?9 w, W! n/GR[-] 启用 C++ RTTI enable C++ RTTI 3 g) Z! E! n9 z0 j
/G5 为 Pentium 进行优化 optimize for Pentium
# h% b1 r0 Q, d, ]/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
! [5 ]( R2 K p8 K! i9 w1 y. ^/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) 3 w2 v( d2 ~, S6 L7 @+ _
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH t. b& c7 B @/ R. h
/GD 为 Windows DLL 进行优化 optimize for Windows DLL - _) j' e& y# g$ V4 \/ g8 [
/GB 为混合模型进行优化(默认) optimize for blended model (default) . W5 T$ C9 r; w) p0 }
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
# s `! t1 C! v4 B/Gd __cdecl 调用约定 __cdecl calling convention * n: R# Z7 L5 a2 G: o
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow * p6 w/ E, {% p6 F' ]9 a* w
/Gr __fastcall 调用约定 __fastcall calling convention
8 C' b+ l" t; h/Gi[-] 启用增量编译 enable incremental compilation
* D: W# A1 t; F5 c/Gz __stdcall 调用约定 __stdcall calling convention
& d, e9 c' A2 j/Gm[-] 启用最小重新生成 enable minimal rebuild
, E) U2 K1 u1 z2 U% O: j/GA 为 Windows 应用程序进行优化 optimize for Windows Application
/ w; [0 M- M) t" k/Gf 启用字符串池 enable string pooling
8 T* j, K+ X+ Y( Z0 e. N' \/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
) A6 v3 `; p7 m/GF 启用只读字符串池 enable read-only string pooling ) i2 @2 B+ u/ o! D, Z! B3 c
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix & u6 V: s1 @4 Z4 l$ S: n$ Q! B) w
/Gy 分隔链接器函数 separate functions for linker 7 D4 J: K! m/ e* {0 C( B
/GZ 启用运行时调试检查 enable runtime debug checks
' g( W. ~4 J& f3 h# o/Gh 启用钩子函数调用 enable hook function call
( y# L5 @. M1 X) m/Ge 对所有函数强制堆栈检查 force stack checking for all funcs 8 K+ w( G& J; O9 `9 ~1 ?
/Gs[num] 禁用堆栈检查调用 disable stack checking calls % Q* w8 M' H- C
# }- q" \6 p+ D-输出文件-
2 c7 ^2 K& h5 x- }" G/Fa[file] 命名程序集列表文件 name assembly listing file ) }0 }4 j- r' C- N* O
/Fo 命名对象文件 name object file
5 d8 r. Y) M& V; G/FA[sc] 配置程序集列表 configure assembly listing
! Q3 b: a) \% C/Fp 命名预编译头文件 name precompiled header file + F# T2 e0 {! b7 f
/Fd[file] 命名 .PDB 文件 name .PDB file , c, T6 g; q5 t2 Q. p- p
/Fr[file] 命名源浏览器文件 name source browser file ! ~0 y4 c$ t7 o, o4 v% M& Y
/Fe 命名可执行文件 name executable file
7 u7 |5 u& C6 b/FR[file] 命名扩展 .SBR 文件 name extended .SBR file + P! m' |3 B. k
/Fm[file] 命名映射文件 name map file ' W8 r- j8 I" H" g0 V* b3 d
/ V8 l, j: u' m8 F& r, V
-预处理器-
+ }8 W0 J" x0 k" p( ]" K/FI 命名强制包含文件 name forced include file
& q, {; h* N4 r, V" g7 x( F/C 不吸取注释 don't strip comments / ]: D4 D/ J: q6 A- d
/U 移除预定义宏 remove predefined macro ! l1 T8 I+ W! O# N$ s' U2 _
/D{=|#} 定义宏 define macro - r2 h N4 g3 y; j6 ]1 g& } j
/u 移除所有预定义宏 remove all predefined macros 9 q0 O* a; N& g6 R5 ^8 [
/E 将预处理定向到标准输出 preprocess to stdout / {! z; }3 p# Q) W
/I 添加到包含文件的搜索路径 add to include search path
$ a/ f, z: ^) C1 s" t: R5 E! g/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line 5 Y' q6 Z* G7 X$ r
/X 忽略“标准位置” ignore "standard places" ) ^( z4 n- O6 b Z* M
/P 预处理到文件 preprocess to file 8 i8 o; Z0 @" Q5 b+ D
8 g! x9 i3 O! d2 @4 S4 C-语言-
. |! j2 Z1 U, c; U3 J/Zi 启用调试信息 enable debugging information
( e7 y; Q- N$ I# k, M7 p: M3 Y/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
! q- u9 Q) u) o, F9 @, i3 _; `/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info + v; q, o( P6 U& [
/Zg 生成函数原型 generate function prototypes * W: F3 H! |* t. K2 f2 \
/Z7 启用旧式调试信息 enable old-style debug info - n* j) c& U2 N: h( k. P
/Zs 只进行语法检查 syntax check only 2 u( q( L E; m
/Zd 仅要行号调试信息 line number debugging info only
7 ?+ R, k' Y. R( T/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
^; t8 `6 l: J! ]6 R; c r/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary . K* y& V! [; _; Z7 M( U+ f
/vm 指向成员的指针类型 type of pointers to members
: Y% O& I4 i2 `- D/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
. G# E' ~ H: W/ a2 C/noBool 禁用“bool”关键字 disable "bool" keyword
" h$ R! R; H# p5 ?- z" e/Ze 启用扩展(默认) enable extensions (default)
( H: D# U) n1 ^$ _ m. ~2 V
6 H/ j1 l/ Y# h2 n7 Y& d0 w% E3 M- 杂项 -
4 o& S. ?& B* q% e$ n5 L/?, /help 打印此帮助消息 print this help message * V$ D7 d- K* ?" k: l% q% {8 F
/c 只编译,不链接 compile only, no link : K+ w$ K( x" C- N
/W 设置警告等级(默认 n=1) set warning level (default n=1) ' f0 x5 T, E9 q# f' g$ [7 F% U7 h3 O
/H 最大化外部名称长度 max external name length 2 r& G8 i6 {. r/ L. M( D6 q
/J 默认 char 类型是 unsigned default char type is unsigned
' ]5 z; e' H' v/ p/nologo 取消显示版权消息 suppress copyright message
7 }4 E. S4 z7 v. C6 D$ R/WX 将警告视为错误 treat warnings as errors
# q7 U8 \) y7 ?/Tc 将文件编译为 .c compile file as .c
5 \+ F; }: {3 \; X* P2 s/Yc[file] 创建 .PCH 文件 create .PCH file
5 m* E+ T( C3 e" q2 J. U# O/Tp 将文件编译为 .cpp compile file as .cpp 9 D3 g; h1 q& Z E: E% x
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
2 m$ {1 ~' R8 Z/ o; U7 C/TC 将所有文件编译为 .c compile all files as .c 5 v# \7 J6 B, e- v; T% I4 v" \
/TP 将所有文件编译为 .cpp compile all files as .cpp % F$ P( a* H, ]2 ^2 q: y! Z! B
/Yu[file] 使用 .PCH 文件 use .PCH file
# c6 L7 P0 V3 G; p8 D/V 设置版本字符串 set version string
8 d; {% ^3 i' I* n" u/YX[file] 自动的 .PCH 文件 automatic .PCH
+ h* J2 ]4 G6 n. A8 B/w 禁用所有警告 disable all warnings ( l# ~% A2 r- Y0 p+ m4 \
/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
7 G9 h; C$ L* C2 H
8 t* z6 W' W5 y-链接- 3 X7 e5 r) \# h Q9 T* N- r: q- y# N, s
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB # Y! p+ n- J5 K
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib 2 C8 \& l/ o+ v" w0 _8 v% j
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
7 `/ W& k# B5 X6 v/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib 1 b P9 W- [: z9 }" C, q, ?* [% r
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
~- ^* m+ U+ B7 S- A4 `) A9 M/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
1 q( G7 }! M0 R( u+ [- T7 B* q/ N/LD 创建 .DLL Create .DLL 2 j$ G9 ?) ]! j5 ~+ ]# F* S
/F 设置堆栈大小 set stack size
6 `3 v g( @% `/LDd 创建 .DLL 调试库 Create .DLL debug libary |" F/ _# `1 t% c- x+ P7 W% t/ A
/link [链接器选项和库] [linker options and libraries] |
|