|
|
-优化-
! n/ U9 _9 m$ z+ M# v" R, v7 x4 W/O1 最小化空间 minimize space S* i8 o. M1 j9 Z3 j) x
/Op[-] 改善浮点数一致性 improve floating-pt consistency
8 _; F" H& a& e1 y7 t/O2 最大化速度 maximize speed
8 M- ?: Q$ a/ {- a( k$ |# v/Os 优选代码空间 favor code space
$ M: M/ w4 `* g+ X. }/Oa 假设没有别名 assume no aliasing
C# H7 p' c3 @: A. Z) t/Ot 优选代码速度 favor code speed
. R2 k, I* D. X; ^$ e( Y' z/Ob 内联展开(默认 n=0) inline expansion (default n=0) , i$ [" f/ }. S( M* s' T
/Ow 假设交叉函数别名 assume cross-function aliasing
1 I9 h6 W% g5 O( b/Od 禁用优化(默认值) disable optimizations (default)
& Q# M; v3 W/ O# t1 O/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) ) H5 y3 G# B, L& m- S: v0 `
/Og 启用全局优化 enable global optimization
( @4 B- b; [7 I, o4 U9 k/Oy[-] 启用框架指针省略 enable frame pointer omission
1 e7 k7 ?: M" _" U8 H/ V/ i/Oi 启用内建函数 enable intrinsic functions
" q$ q0 ]. {* M& a2 z) O
# H$ k1 T6 Z: f" K( H-代码生成- 2 c* `. [, L: _. [3 r7 K
/G3 为 80386 进行优化 optimize for 80386 9 w9 D. Y! v2 q
/G4 为 80486 进行优化 optimize for 80486 * Z' D, \+ @( i
/GR[-] 启用 C++ RTTI enable C++ RTTI
( ^: d( i. x/ ?; U. i8 j2 a/G5 为 Pentium 进行优化 optimize for Pentium & L& |6 T! P; K7 O7 n$ V5 O8 T! s
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
+ Q W4 k' E6 U) f6 I/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) * ?& ~4 q8 r- w2 C+ t% p: A9 K5 e
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH ; E" c: [, v/ t. a
/GD 为 Windows DLL 进行优化 optimize for Windows DLL
( A* _" _; U/ z0 v/GB 为混合模型进行优化(默认) optimize for blended model (default)
8 P7 U9 j) L) Y6 L3 a0 H! y/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH % V6 a+ h' Y# W* ^" j! `1 U( h
/Gd __cdecl 调用约定 __cdecl calling convention
' D0 e+ X( @( }# ^" k6 L) A/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
8 G$ M: R. e3 r& C/Gr __fastcall 调用约定 __fastcall calling convention " X) w$ A; u1 X; v: [
/Gi[-] 启用增量编译 enable incremental compilation
6 _& S- |8 O; Q4 X; x) t& b+ D/Gz __stdcall 调用约定 __stdcall calling convention ! L2 i4 k0 `# y) p$ `
/Gm[-] 启用最小重新生成 enable minimal rebuild
$ B) e: c* K# N/GA 为 Windows 应用程序进行优化 optimize for Windows Application
2 y0 H* ^$ s2 L/Gf 启用字符串池 enable string pooling
5 z, W, n0 v& Y: E1 V/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix 9 o7 D6 J2 ^% i0 ?( K2 o4 J" @
/GF 启用只读字符串池 enable read-only string pooling . _$ I C- p2 n" u \( D
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
2 }& L8 G; F3 W7 e' E8 t1 i/Gy 分隔链接器函数 separate functions for linker 9 I: h4 P5 Q# G5 f" v7 u7 ]3 z
/GZ 启用运行时调试检查 enable runtime debug checks & O4 Q7 Q! A; l! y# o
/Gh 启用钩子函数调用 enable hook function call
0 r+ S5 Y: T7 _7 m$ }8 l' x/ x/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
1 t, N- n/ u: W% f3 u% Y7 h) ~/Gs[num] 禁用堆栈检查调用 disable stack checking calls " ^$ j% v' H( i# P6 q, x0 g
: q; ]8 }. L: g* B& P" K% A0 r-输出文件- , O. s- s/ D8 R* o( l
/Fa[file] 命名程序集列表文件 name assembly listing file
9 m" t$ V. r W* ~* z4 U. G/Fo 命名对象文件 name object file
) O( _. Q' O: n" r/FA[sc] 配置程序集列表 configure assembly listing
9 w5 w- m; K5 w) h H& r/Fp 命名预编译头文件 name precompiled header file 9 r$ i( P5 ^- Z: j3 Y% m1 G+ Q
/Fd[file] 命名 .PDB 文件 name .PDB file
1 A/ _0 Y( W/ L1 C y/Fr[file] 命名源浏览器文件 name source browser file
7 \5 J. |* t8 w$ `! N0 N/Fe 命名可执行文件 name executable file # A* K! r1 G0 E3 I! _8 m) [: Z
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file 7 E$ o+ ]2 B( A2 |- \ W: O1 D" u
/Fm[file] 命名映射文件 name map file 1 ]! j. [& Q8 `. H: k4 M
0 j( l. U& B- E; u$ i" `5 h" @; g-预处理器- + E- |8 P& V( f2 o! s
/FI 命名强制包含文件 name forced include file
6 g. U* ^1 M2 k- }# `" c |/C 不吸取注释 don't strip comments
7 ]) g* ?- |6 H* o0 X) V8 u/U 移除预定义宏 remove predefined macro
3 T, \) e# t9 o; `% w+ T/D{=|#} 定义宏 define macro 6 [- y; t1 n' V+ {; O( L, Z
/u 移除所有预定义宏 remove all predefined macros ! x! B( J2 L' o0 ?7 l7 m: x
/E 将预处理定向到标准输出 preprocess to stdout
" V! m8 {! c! ?/I 添加到包含文件的搜索路径 add to include search path 7 S- |4 y& B- r2 W% s" k. |$ [
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
( a2 t; h1 O+ n% a: p2 b8 ~/X 忽略“标准位置” ignore "standard places"
/ t) J1 C d- G% n# |4 C/P 预处理到文件 preprocess to file
( E4 ]+ _( a/ g/ E; `6 h% P: l% F) M! {& J$ q2 o
-语言- ; S- ]% l# O5 {4 u: B; j
/Zi 启用调试信息 enable debugging information . y2 P! `3 L' @
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ + v1 P* ^# B9 r- f7 o& e
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info 7 U5 [! S. Q& @/ h
/Zg 生成函数原型 generate function prototypes 0 Z' T9 r' G7 l3 R
/Z7 启用旧式调试信息 enable old-style debug info
7 ]1 x6 |0 H: `) E9 h @5 n5 g/Zs 只进行语法检查 syntax check only ! v6 k8 d) u4 q; R3 J
/Zd 仅要行号调试信息 line number debugging info only
- b- E7 Z; `- j3 q7 r6 ]/ ]/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
# Z0 |: w7 e% f9 l; G/ _6 m( `/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary
" G4 I( H/ \6 G% Z! m* {7 D m/vm 指向成员的指针类型 type of pointers to members
0 g; C3 E& M/ @3 u/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) + Z8 C; b& g% Q; [ p- R3 {7 L* S
/noBool 禁用“bool”关键字 disable "bool" keyword
2 c, D. s$ g3 Y- L9 U/Ze 启用扩展(默认) enable extensions (default) : n: l8 b0 i2 u! G% P) I5 e* Z
* Y8 d0 k# Y; T+ N
- 杂项 - - O' l, J4 e' ?8 f n
/?, /help 打印此帮助消息 print this help message
& f4 I4 C; g% N. R, j8 S8 |9 z! I/c 只编译,不链接 compile only, no link / p# V' ^ d8 B9 U E
/W 设置警告等级(默认 n=1) set warning level (default n=1) 5 T1 V# j' `1 v& c3 v% h1 f `
/H 最大化外部名称长度 max external name length 4 C% r& A8 u7 z, K5 G& K
/J 默认 char 类型是 unsigned default char type is unsigned
( \# n2 O4 q3 q; n) V \7 Y/nologo 取消显示版权消息 suppress copyright message + f3 A/ I' H- e& j1 N! I( n2 F
/WX 将警告视为错误 treat warnings as errors . K- r# M% s0 W" p- ?' y3 t
/Tc 将文件编译为 .c compile file as .c 2 \$ B7 ] D8 C
/Yc[file] 创建 .PCH 文件 create .PCH file
" X' ^9 U* X- W% _3 E/Tp 将文件编译为 .cpp compile file as .cpp
* L$ A& q4 W& n) }" s4 @! H/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ : i7 }' N# p" ?& d9 E3 i0 w
/TC 将所有文件编译为 .c compile all files as .c
0 \8 Z3 T) S2 U1 ]9 E/TP 将所有文件编译为 .cpp compile all files as .cpp
t- @$ P+ _8 c* u8 s4 S) W/Yu[file] 使用 .PCH 文件 use .PCH file
% V1 j% [& ]6 T* `3 _9 z* N5 k) V# p# _/V 设置版本字符串 set version string
, L) V0 I6 s8 P) a: W( A& |2 n/YX[file] 自动的 .PCH 文件 automatic .PCH
( @; Q Y' `6 ~9 x6 d/w 禁用所有警告 disable all warnings ! ]5 j( Y) F X0 }
/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
. l, u# N* W3 A$ C; b L$ m
, A. ]9 K- M% G-链接-
4 H2 X( P& z! X5 F2 ]. q/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
& G6 i! `4 w( a; S* x5 T& d5 E6 E6 W7 L6 i/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib / |# U3 N/ ~9 N5 A. o
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
" L* ~1 ~8 M- S6 G, K- j/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib 8 W$ D1 k S5 I
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB 2 O5 X5 |9 ^7 b+ x, S V+ J
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
" ~% H, s2 e, V) K+ u/LD 创建 .DLL Create .DLL @6 y% i# Q/ ]6 L y M! C% I: k
/F 设置堆栈大小 set stack size
7 m: I/ e5 K3 m7 q0 S/LDd 创建 .DLL 调试库 Create .DLL debug libary
; j3 [# O3 p4 b/link [链接器选项和库] [linker options and libraries] |
|