|
|
-优化-
; w) Y& ^- v: ?( R% g2 K/O1 最小化空间 minimize space
: C; e; ~3 n* A) E+ W( o/ X! L( v) h/Op[-] 改善浮点数一致性 improve floating-pt consistency
% L8 P b) r' a! r* v/O2 最大化速度 maximize speed / D& ]( ~; {7 o1 _5 @! f
/Os 优选代码空间 favor code space * n# h1 G1 W) s% f
/Oa 假设没有别名 assume no aliasing ( Z: E5 ^ b8 y6 t; m! p
/Ot 优选代码速度 favor code speed + o7 `, x; B* E% w6 |
/Ob 内联展开(默认 n=0) inline expansion (default n=0) 5 y9 T, g S$ i3 N3 l
/Ow 假设交叉函数别名 assume cross-function aliasing 5 b z/ H( t$ v5 r& ^! Q2 Q! s [
/Od 禁用优化(默认值) disable optimizations (default) b# \1 b) J) W$ N5 Q
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) 1 v& q7 Y) ^2 r' P( E6 L
/Og 启用全局优化 enable global optimization
9 {2 E0 t# Y2 M! ?) d1 E5 |/Oy[-] 启用框架指针省略 enable frame pointer omission ; c& Y1 k: {4 s% z
/Oi 启用内建函数 enable intrinsic functions
% h' v1 e5 m- e8 _. @. v7 B H2 B( \! L( m9 k8 F# f9 L2 v7 m
-代码生成- ) q4 L4 y5 N5 w* e! n- x! S
/G3 为 80386 进行优化 optimize for 80386
9 w c3 G l4 A0 z: q- C- J0 O/G4 为 80486 进行优化 optimize for 80486
& N4 w: `, c5 |9 E& s/GR[-] 启用 C++ RTTI enable C++ RTTI
2 r4 x5 o: V7 p* i3 e; }/G5 为 Pentium 进行优化 optimize for Pentium
& E* y" Z# v+ k) l7 f( _5 y/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
+ u* T, ?0 [1 x/ }+ r' l F/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) ) e P4 D2 \7 b
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH / a# a- ?; C% i6 z# @+ D2 k
/GD 为 Windows DLL 进行优化 optimize for Windows DLL
" y$ G( P2 e4 [/ e" @7 e! [/GB 为混合模型进行优化(默认) optimize for blended model (default) # b; i, Y7 }9 O; W' e) b5 U6 d) W
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
) {- C8 Y0 z, Q, f6 K/Gd __cdecl 调用约定 __cdecl calling convention 0 Q* g. B# b2 I. d6 w$ e
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
, O8 l$ [( G. L0 u( }3 ^2 |/Gr __fastcall 调用约定 __fastcall calling convention 2 S( y; B" A7 `& ?% s, j3 L; I
/Gi[-] 启用增量编译 enable incremental compilation
: r. g3 d3 T. T* I9 u0 f6 X2 s& Z' c/Gz __stdcall 调用约定 __stdcall calling convention
9 N1 m8 b d% J! N6 D+ t& B C# Z/Gm[-] 启用最小重新生成 enable minimal rebuild , o. X2 v9 A8 Z) r
/GA 为 Windows 应用程序进行优化 optimize for Windows Application
& _3 K; ~5 b# @) n! G6 B5 u/Gf 启用字符串池 enable string pooling 7 }) i+ c1 z7 A" K$ k: |% k/ \
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
* \& y9 g; z, q/GF 启用只读字符串池 enable read-only string pooling
^$ L$ O0 f2 m% ?8 }/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix ; d& H$ S" T) P Y9 |
/Gy 分隔链接器函数 separate functions for linker
. ]) D; q7 z) N: M/ E; h0 f/GZ 启用运行时调试检查 enable runtime debug checks
- T5 p* d2 r) a5 R/Gh 启用钩子函数调用 enable hook function call & H* i$ l$ w4 l9 E' W* ?
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
5 S/ T9 y8 i N+ {$ l) A) a/Gs[num] 禁用堆栈检查调用 disable stack checking calls * ]% E" O8 t- x
* T/ u8 C+ O# ], U8 Y1 ?
-输出文件-
8 w* l9 z9 S. W+ ~, I/Fa[file] 命名程序集列表文件 name assembly listing file 3 h9 Z6 X* f# I' ^6 T0 {
/Fo 命名对象文件 name object file
0 G1 @. L) M; _$ E/FA[sc] 配置程序集列表 configure assembly listing
2 j4 Z, w- @. g4 ]( m; M+ T/Fp 命名预编译头文件 name precompiled header file
& d' V$ O5 {) o$ I/Fd[file] 命名 .PDB 文件 name .PDB file
. m) _. R3 p f7 ?/Fr[file] 命名源浏览器文件 name source browser file + U: b0 x! q* R3 u* U" w, x7 O
/Fe 命名可执行文件 name executable file 1 j2 R# U) g6 e
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file * O* p! n* v( m; j- n) x8 P9 y4 K
/Fm[file] 命名映射文件 name map file + H# F' v, K @% O) `: _
7 [4 f/ ^# h+ N-预处理器-
1 X9 Q. ^- W: M! r: |; y" |0 p/FI 命名强制包含文件 name forced include file 8 M' R% |- ?3 N
/C 不吸取注释 don't strip comments
5 `) m1 D5 J" J# [) c" V/U 移除预定义宏 remove predefined macro
, R) L3 H7 ^/ p/D{=|#} 定义宏 define macro
9 r8 W. ]7 z, ]6 q, I& V0 j/u 移除所有预定义宏 remove all predefined macros
. K7 ^, j, C" [1 _/E 将预处理定向到标准输出 preprocess to stdout v3 }. J: n" F2 `2 d
/I 添加到包含文件的搜索路径 add to include search path ' y+ L5 w2 c% ~. K2 x7 w
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line 0 j, o* n m! L
/X 忽略“标准位置” ignore "standard places" " c) h2 i' E5 a* q
/P 预处理到文件 preprocess to file
' H. J; i |! M* s |3 t3 s! r( E# H4 [/ k, ?4 G4 s0 i' v
-语言-
* F' e, L( O3 k+ c! f6 ~; j/Zi 启用调试信息 enable debugging information ; M" m1 ?9 o4 r( X$ q( {/ j O
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
; J- q* w' ~% R9 ~" e# k/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info ; c d5 _9 Q# R
/Zg 生成函数原型 generate function prototypes : l- O2 w* Y/ f% n* ^ c0 }
/Z7 启用旧式调试信息 enable old-style debug info 6 O* L6 z' g; \8 |. \! Y- V
/Zs 只进行语法检查 syntax check only $ g1 G1 d: \2 d. p
/Zd 仅要行号调试信息 line number debugging info only
- o! e& S* z+ o3 q8 A/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp 8 Y! E5 \+ {! E& p: V6 w% y" ]* W
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary 7 U) ?8 k6 D( G9 V
/vm 指向成员的指针类型 type of pointers to members
+ I2 L9 D: f: U4 p& G" p/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) 8 i- O' E' s# ]' |
/noBool 禁用“bool”关键字 disable "bool" keyword + L' Z1 B0 K' |. [
/Ze 启用扩展(默认) enable extensions (default)
2 J+ A$ w# }4 ^7 i
# M$ J# _& C5 k- Z- 杂项 -
7 U- V2 g* b- J$ z/?, /help 打印此帮助消息 print this help message
7 E6 l; Q6 n, ]! q) h% W/c 只编译,不链接 compile only, no link
3 c$ F5 B* R. o0 t; O/W 设置警告等级(默认 n=1) set warning level (default n=1) ; r. ^/ B' ]- f
/H 最大化外部名称长度 max external name length 1 ~' ^& W) V' m6 {+ y
/J 默认 char 类型是 unsigned default char type is unsigned 8 U2 O9 U! G4 ^5 C! T, o
/nologo 取消显示版权消息 suppress copyright message ! I( \( J F- U$ c# [2 H) h
/WX 将警告视为错误 treat warnings as errors
3 o$ M9 ~2 k8 y" `# t4 V/Tc 将文件编译为 .c compile file as .c
# y2 D, i4 {# u# Q( v7 s/Yc[file] 创建 .PCH 文件 create .PCH file ) E/ h3 W+ R8 K
/Tp 将文件编译为 .cpp compile file as .cpp
$ t9 l3 x& P9 B- P/ D x/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
; p, m n7 u; ?/TC 将所有文件编译为 .c compile all files as .c
- ^* c1 Q- D+ ]% X8 p/TP 将所有文件编译为 .cpp compile all files as .cpp
! x) @, q& S% Z/Yu[file] 使用 .PCH 文件 use .PCH file , d! d" q2 b/ N2 n% T. H" a( D
/V 设置版本字符串 set version string : d8 b2 N# r( a; ^% p$ Q. h
/YX[file] 自动的 .PCH 文件 automatic .PCH
9 P* q, ?( z, y/w 禁用所有警告 disable all warnings 7 S1 P" l2 T( X, W$ z B3 B1 r1 l
/Zm 最大内存分配(默认为 %) max memory alloc (% of default) - t& Q A* n7 z- y
. K0 _; P, |4 J3 G0 F; z! Z0 S: G-链接- # @% s5 e& U" ]7 c4 P1 [
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
& u8 ^% F; b& x3 D7 B8 @' @$ P/ b/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib ) J6 s% b) }( c! E
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
* r: G4 B" W% u# v: H# O/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib 9 r" l! i4 \, d* [0 C& c% u
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
7 }, A: i+ |/ j `* V! ^7 Q/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
7 q7 [0 [6 Q) [! q% |5 H/LD 创建 .DLL Create .DLL
: G1 B7 j- ]( I8 S3 P K: v% n _/F 设置堆栈大小 set stack size
$ a, X6 ?6 U+ _0 d0 \& [/LDd 创建 .DLL 调试库 Create .DLL debug libary 8 Q3 B& g- `, e
/link [链接器选项和库] [linker options and libraries] |
|