|
|
-优化-: H8 W: O0 S7 U3 B9 G/ V* c
/O1 最小化空间 minimize space
* Y: w8 _, B: n7 u4 n$ ~2 i( j/Op[-] 改善浮点数一致性 improve floating-pt consistency
1 p- B7 z3 s! `% H/ a3 i/O2 最大化速度 maximize speed
$ |; R) P5 F, E4 P5 K/Os 优选代码空间 favor code space
: r$ E. L8 b! b. J/Oa 假设没有别名 assume no aliasing 1 k- z L$ o5 @
/Ot 优选代码速度 favor code speed # @. T+ S! @, m* M( h) s
/Ob 内联展开(默认 n=0) inline expansion (default n=0) 9 K" ?- ~- t1 k' g+ p
/Ow 假设交叉函数别名 assume cross-function aliasing
0 i; ?) M6 B, z3 d/Od 禁用优化(默认值) disable optimizations (default) 2 _4 V. |$ B+ ?" `1 K5 H# t8 R
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
7 ]6 \3 {5 [! \! ]/Og 启用全局优化 enable global optimization
" T, P7 b1 g* V/Oy[-] 启用框架指针省略 enable frame pointer omission
6 c+ w9 L8 e+ U0 z/Oi 启用内建函数 enable intrinsic functions
' l- e, b8 b" `
- ?1 U1 a' e. U! ]9 n-代码生成-
1 E/ L7 J* D2 H; v; N7 [1 w/G3 为 80386 进行优化 optimize for 80386 2 V% {+ c7 v+ d* s) g, U( b
/G4 为 80486 进行优化 optimize for 80486
7 D+ m& T+ X( i" @/GR[-] 启用 C++ RTTI enable C++ RTTI
; {, Q' g+ q+ x* [+ h! k# W( i/G5 为 Pentium 进行优化 optimize for Pentium
0 l& l6 G: A, g0 s7 r/ g/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro 5 A6 h4 }8 y, R F
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) ; b* c, l( u3 o4 @
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH & P4 _* o0 \- N/ A" i( Y8 S
/GD 为 Windows DLL 进行优化 optimize for Windows DLL ! J8 ~3 E! L8 i2 g+ [$ _1 b
/GB 为混合模型进行优化(默认) optimize for blended model (default) . F" S: b# P5 t) V: x! p2 H
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
$ I5 s- A( ~/ p/Gd __cdecl 调用约定 __cdecl calling convention
' ~, }( ]9 X# F2 `7 L- m) c/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
. h! p8 G+ y$ J1 a, ]/Gr __fastcall 调用约定 __fastcall calling convention
! w; d/ r$ v6 a/Gi[-] 启用增量编译 enable incremental compilation
7 w6 N+ u# \1 |" h; d/Gz __stdcall 调用约定 __stdcall calling convention
/ \$ ~" P% ]1 _/Gm[-] 启用最小重新生成 enable minimal rebuild # B, x9 h$ W5 j7 a; q; J9 @( |
/GA 为 Windows 应用程序进行优化 optimize for Windows Application 6 E, \; ~8 s' E/ @
/Gf 启用字符串池 enable string pooling / C. H: C: R' c9 ] H' j) K, f
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
$ U: X3 Y; f$ X! P" \/GF 启用只读字符串池 enable read-only string pooling * D1 Z& Z4 q; X) w* r6 T8 z- s" J
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix * m5 R H7 [; o0 _ x
/Gy 分隔链接器函数 separate functions for linker
- e4 v8 Q: Z9 Y: O( K9 l( X/GZ 启用运行时调试检查 enable runtime debug checks : H8 y( h# k3 Y o- B
/Gh 启用钩子函数调用 enable hook function call
) ]. v5 U6 t* j1 u+ o8 s M3 K/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
+ \1 w; r( a0 G0 |/Gs[num] 禁用堆栈检查调用 disable stack checking calls
+ E& u' ]. |8 D6 t R2 _% T1 d5 ? @! A/ D( q$ j
-输出文件- : E: q. Z. ]& K4 ?6 E
/Fa[file] 命名程序集列表文件 name assembly listing file
) ]6 u/ c3 ~+ T% {. V& z3 O$ n# p/Fo 命名对象文件 name object file
. F) J3 F# G2 X9 r/FA[sc] 配置程序集列表 configure assembly listing : y/ |. x U0 S1 H0 Y7 t
/Fp 命名预编译头文件 name precompiled header file
2 q2 H/ D# \, \. }! c6 E/Fd[file] 命名 .PDB 文件 name .PDB file
0 |. U% i1 t! Q. o6 ?/Fr[file] 命名源浏览器文件 name source browser file
, h& I% p0 ~2 t! k& D+ n3 h/Fe 命名可执行文件 name executable file & I/ h' g& G7 w9 I
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
$ R' T& s2 I8 Z d0 r/Fm[file] 命名映射文件 name map file & b: o! B# i+ X, R7 Z# M* e
8 A2 d/ c. Y8 ]- L: i
-预处理器-
- S, q5 X; i3 H3 f q/FI 命名强制包含文件 name forced include file ' e7 x3 |: G# _3 a
/C 不吸取注释 don't strip comments 0 s: A% p' ~& g8 F1 D, F8 Q# {. I
/U 移除预定义宏 remove predefined macro * ~) X% y# B0 K6 Q6 r: o
/D{=|#} 定义宏 define macro 2 f' C( f! b' A* T8 q5 R! a5 c8 Z
/u 移除所有预定义宏 remove all predefined macros $ X- i1 j% n) l, ^& b
/E 将预处理定向到标准输出 preprocess to stdout - e; f" ]/ _0 P, {- K
/I 添加到包含文件的搜索路径 add to include search path 4 Y: o, ]* {% @' b7 M/ i
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
7 e$ Q) K1 Y0 ]/ u! r/X 忽略“标准位置” ignore "standard places"
0 b C+ z; n1 k' w& g/ Y/P 预处理到文件 preprocess to file
5 m* [+ E$ ?7 t) C; Q
; f/ H/ i" Q& H! t& Y-语言-
) A: A5 ?3 a7 V5 g- z/Zi 启用调试信息 enable debugging information ) e" j4 g$ i* z3 V
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
. \$ y* b& T/ ?8 ?. L/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info & }( ~9 Q8 |. f F
/Zg 生成函数原型 generate function prototypes
{4 m1 R3 R; p+ N4 {! g0 O$ Q/Z7 启用旧式调试信息 enable old-style debug info
+ d- u* N2 ~2 x1 j5 q/ O/Zs 只进行语法检查 syntax check only
. q% S, i/ O. A; L4 _) S4 T( K" k/Zd 仅要行号调试信息 line number debugging info only
4 ? d! a1 h7 \! a/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
/ M+ ]# f0 f8 b2 V$ T; n' S/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary
/ G1 o, d4 V, c: s/ ]" r7 J, e+ T$ _/vm 指向成员的指针类型 type of pointers to members
. _% p. R0 Q$ ?( i0 f/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) : F( T" p8 X" o1 j1 p8 y
/noBool 禁用“bool”关键字 disable "bool" keyword
5 F t; j) o/ {6 y5 ^/Ze 启用扩展(默认) enable extensions (default) - E# y+ v- u9 o9 C
0 w1 p7 Q1 D8 w" C
- 杂项 - 3 Y9 g7 F# Y4 l o( t5 u X
/?, /help 打印此帮助消息 print this help message % |0 ^5 j8 O7 h$ `9 S" L
/c 只编译,不链接 compile only, no link " i/ u& U( U7 a/ J* K J
/W 设置警告等级(默认 n=1) set warning level (default n=1) , |& F8 d! G, }/ I% k6 j$ Y8 i
/H 最大化外部名称长度 max external name length 4 y u! P& P, t+ k% U# a
/J 默认 char 类型是 unsigned default char type is unsigned " \$ a' ?& d' a5 G( E2 S
/nologo 取消显示版权消息 suppress copyright message
8 @4 @4 G$ T/ M* q/ w; O) m/WX 将警告视为错误 treat warnings as errors
3 z* h5 V" A4 O$ K) q3 |# t/Tc 将文件编译为 .c compile file as .c : Q3 [# X) {0 y7 W( y; ^9 M6 @
/Yc[file] 创建 .PCH 文件 create .PCH file y" k: O a+ g/ f5 U, T2 ?8 @& M5 |- r
/Tp 将文件编译为 .cpp compile file as .cpp 4 S# t- D" n& D
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
3 [# f( {, I# {2 E% K: B/TC 将所有文件编译为 .c compile all files as .c
; B$ D2 a. D5 z, y4 m" ~4 {! {& q3 a/TP 将所有文件编译为 .cpp compile all files as .cpp ; x5 m" J1 N, c j m4 z
/Yu[file] 使用 .PCH 文件 use .PCH file
3 \4 j9 b$ G+ L/V 设置版本字符串 set version string ; \ F% a7 J) B) i. N0 m
/YX[file] 自动的 .PCH 文件 automatic .PCH
' C( O0 p; U/ {. S6 C; X3 Z/w 禁用所有警告 disable all warnings
; H$ ^/ @; c; {/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
1 l4 j0 n1 N2 w+ Q, z1 t+ |$ t7 N; U7 U$ N+ u; a4 f# r }
-链接- : u5 z/ `) R, t& r6 V" o* @
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB 9 ]6 A! r3 Z) m7 s
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib
* \+ L( z. @) o0 @# x2 _( {/ML 与 LIBC.LIB 链接 link with LIBC.LIB
$ ? F1 a0 B6 f/ f- z, g; p/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
7 i9 ?! X0 g! Y& a' c5 J( x# ]/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB 0 I' t1 [" A; z$ l" i" c9 ^9 e9 L
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib 5 M# Z+ N3 l. f( z
/LD 创建 .DLL Create .DLL
, y0 T% C, u' Y7 {* R% E8 M! V/F 设置堆栈大小 set stack size " E. ` q4 {! }' {
/LDd 创建 .DLL 调试库 Create .DLL debug libary
' E) m: P7 f8 M; D2 t/ L3 u( i0 ]/link [链接器选项和库] [linker options and libraries] |
|