|
|
-优化-" J" |1 `3 L( E5 }1 H5 |5 w* _
/O1 最小化空间 minimize space
+ T) c" M4 n9 Y7 K/Op[-] 改善浮点数一致性 improve floating-pt consistency : ]! w" p8 j i4 q3 O% e
/O2 最大化速度 maximize speed
& [# d2 A |1 ^) ~; W5 D3 s8 B/Os 优选代码空间 favor code space
# L$ w! ]7 r6 v! i/Oa 假设没有别名 assume no aliasing # d% v9 N1 J5 j5 K9 y+ h
/Ot 优选代码速度 favor code speed + _* e' B) n7 F3 p: S
/Ob 内联展开(默认 n=0) inline expansion (default n=0)
7 L$ l' D1 _7 r& Z1 S/Ow 假设交叉函数别名 assume cross-function aliasing
! q( q6 D* W& g5 Q6 _" J/Od 禁用优化(默认值) disable optimizations (default) : [* s' A; s+ K) O( W% x6 f v/ g
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) 4 N; k/ N+ B, n% r! o7 a
/Og 启用全局优化 enable global optimization ( j% I/ b+ D6 Y5 H) x3 p4 ]# \
/Oy[-] 启用框架指针省略 enable frame pointer omission , A# c$ [- W+ l3 E# x
/Oi 启用内建函数 enable intrinsic functions % C" ^) `3 I, I l$ C$ Q+ i8 I
: ?8 r! c, D7 O
-代码生成-
: N( ~# E; X% x( u0 x( b/G3 为 80386 进行优化 optimize for 80386
9 o; G, E0 p+ ] h6 h$ @/G4 为 80486 进行优化 optimize for 80486
( s$ h$ `. A$ p5 {. U/GR[-] 启用 C++ RTTI enable C++ RTTI
3 q6 n6 s( k' T/G5 为 Pentium 进行优化 optimize for Pentium
F( [- x8 W4 ` B( x" j' l! L/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
: O! |; E: \5 W/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
. ^" ^- E B" q' @2 s/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH 0 T3 C* c# t& ]
/GD 为 Windows DLL 进行优化 optimize for Windows DLL 4 F. q* {* Q1 ~# W" G! o' ~% I
/GB 为混合模型进行优化(默认) optimize for blended model (default)
! ], K( v! U, ~' u# s' \/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
* ~8 e! V; t# l. r! c$ P$ F/Gd __cdecl 调用约定 __cdecl calling convention 6 \$ { Z0 W9 ~) L; e
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
" x0 W7 v4 x1 ^; q( R L/ F/Gr __fastcall 调用约定 __fastcall calling convention " n+ v+ m) b% m. g* K
/Gi[-] 启用增量编译 enable incremental compilation
$ b0 }+ G: Y/ N0 Y3 `/Gz __stdcall 调用约定 __stdcall calling convention 9 F4 \* h* l& }5 W
/Gm[-] 启用最小重新生成 enable minimal rebuild
9 h, ` ?; Q: f. W- z/GA 为 Windows 应用程序进行优化 optimize for Windows Application
7 \7 l+ w# X) H! ?7 C1 c/Gf 启用字符串池 enable string pooling * a1 W' ?6 f3 Z8 D% D
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
) N1 A2 w. p% R/ y/GF 启用只读字符串池 enable read-only string pooling ! n" J1 _* {3 ^/ y4 q
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix 6 f$ s& j& w B8 ]$ ]+ A0 p! v! n
/Gy 分隔链接器函数 separate functions for linker . X+ W( z2 K, ?$ m
/GZ 启用运行时调试检查 enable runtime debug checks 7 {6 G* Q3 O9 p. n" Z7 }% C
/Gh 启用钩子函数调用 enable hook function call
3 v& V" m5 }3 H/Ge 对所有函数强制堆栈检查 force stack checking for all funcs + u% y: ^' s( S; S4 y* Q& D7 @% d
/Gs[num] 禁用堆栈检查调用 disable stack checking calls 5 d& M2 _3 X- ]5 z
3 f+ j: J1 Q. c- w
-输出文件-
3 N. {& @0 m' ]! @9 @ n/Fa[file] 命名程序集列表文件 name assembly listing file
4 {. B1 I; E3 c; ?& l( N2 }( i/Fo 命名对象文件 name object file * q8 o4 W# B" t; o8 U1 ]$ l
/FA[sc] 配置程序集列表 configure assembly listing 1 y3 O) U! U5 _7 ^) v: d
/Fp 命名预编译头文件 name precompiled header file
4 Q0 [/ k5 n5 Z7 { r; g0 C3 ^" C: M/Fd[file] 命名 .PDB 文件 name .PDB file
3 ~- {1 ]0 h- T ~! l/Fr[file] 命名源浏览器文件 name source browser file 9 K( K# }; {. S! K" S9 O. t
/Fe 命名可执行文件 name executable file / r) J! n& X" B' Z& D
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
' x% F& J- B& h a4 f( M/Fm[file] 命名映射文件 name map file d! E/ ]# i, ^* Y' v% t
! ~# p1 u' f& E0 l0 V# l# H2 [-预处理器-
/ `0 J! _8 i9 q/ M0 K. o/FI 命名强制包含文件 name forced include file 7 Z+ U& C$ B1 V; @
/C 不吸取注释 don't strip comments * e V/ Q3 ~; s8 [4 a3 }* g
/U 移除预定义宏 remove predefined macro ' L' R8 C4 w9 u4 E, i1 x7 t
/D{=|#} 定义宏 define macro " B. q+ P6 R1 u
/u 移除所有预定义宏 remove all predefined macros
4 A" i1 ~5 k5 o/E 将预处理定向到标准输出 preprocess to stdout
& V% A5 v$ p- r3 ^/I 添加到包含文件的搜索路径 add to include search path
0 y- m# Q% x7 j( Z+ ^/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line 6 q, b& p) U. G" q1 ?- p4 s
/X 忽略“标准位置” ignore "standard places"
$ ~! s6 W; e f" p! }/P 预处理到文件 preprocess to file
9 z' ]( E" z [- t9 a
0 Z9 R; Q% P1 |0 p; b: h-语言- 3 M9 b! f% x8 u3 Q
/Zi 启用调试信息 enable debugging information
1 J/ W1 n. l6 r8 p6 f( Z/ n/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
0 B- E- L1 c1 ?$ U6 C+ W4 v9 Z/ `/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info 4 w( A4 i# j- n/ N7 j/ M
/Zg 生成函数原型 generate function prototypes " n4 h2 i0 s5 G2 @' [ S
/Z7 启用旧式调试信息 enable old-style debug info
1 p: _) r$ | J$ j; A/Zs 只进行语法检查 syntax check only
% }% i( P6 r& b3 Y/ f/Zd 仅要行号调试信息 line number debugging info only
, E6 J* Q4 z$ p/ k! r& U: S/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp # ~) u% ?8 k$ [: e9 S6 H" a8 X
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary # U) T! M' ?2 D' L$ k# u0 i
/vm 指向成员的指针类型 type of pointers to members
f2 S9 ^9 }& r/ e7 _+ y3 _/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) 2 v& h7 j& L6 E& b( @7 H
/noBool 禁用“bool”关键字 disable "bool" keyword
7 ~$ |7 Q' ~. ?" F/ F* s/Ze 启用扩展(默认) enable extensions (default) $ k- q9 q9 H8 V1 Y7 o5 I+ i
3 {; C# {1 V# r( y: M$ h7 W0 Y- 杂项 -
2 _- G! T6 w, r$ a% C8 z" ~* ~/?, /help 打印此帮助消息 print this help message
& h4 m- y$ Q/ S3 q/c 只编译,不链接 compile only, no link
# u8 \, G: y1 r9 c9 K/W 设置警告等级(默认 n=1) set warning level (default n=1) 0 p8 N% m, O1 A1 d9 A4 U
/H 最大化外部名称长度 max external name length
' n+ S# o# M2 U% N, `' Y9 {3 Y a; w/J 默认 char 类型是 unsigned default char type is unsigned # e t& d4 n4 x: H. X d
/nologo 取消显示版权消息 suppress copyright message
7 a; i* n; ?. r: X. Z/WX 将警告视为错误 treat warnings as errors : q& \" y1 D8 n; Z& c- y
/Tc 将文件编译为 .c compile file as .c
. {, M, p& D+ k4 @. i2 ~5 _8 ]/Yc[file] 创建 .PCH 文件 create .PCH file 1 [- y6 f) R) t
/Tp 将文件编译为 .cpp compile file as .cpp 5 T/ f2 Q5 l& a7 h- ~
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ / q% L U W' B5 K
/TC 将所有文件编译为 .c compile all files as .c
1 v+ R" w+ R( ?2 N; ?/TP 将所有文件编译为 .cpp compile all files as .cpp ) Q2 \( o& m0 j
/Yu[file] 使用 .PCH 文件 use .PCH file
& }+ c5 X! t p' D8 p- ^7 \/V 设置版本字符串 set version string
6 @+ j9 B8 M9 O3 p4 v- n+ d/YX[file] 自动的 .PCH 文件 automatic .PCH
: z9 S) i5 A. m/w 禁用所有警告 disable all warnings
; B2 y1 C2 C4 h& L% v; f/Zm 最大内存分配(默认为 %) max memory alloc (% of default) 7 V4 b' P: {. I2 E! k; e7 i) u
/ Z1 J. ^3 m2 `% Z$ F. Z
-链接- , c9 s3 D* Z8 y7 \" l/ L
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
/ w4 w$ g" V! ^9 L0 I/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib ; Y& t' o9 B# J, W) ^1 l
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
. T& f# F( v; @7 t/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib 9 D1 U! ]. o" Q! ^* d! F- g" \/ ]
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
6 K0 r- T$ \0 g3 \$ t- H' Y/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib 1 S+ A1 I5 V+ y" R$ X
/LD 创建 .DLL Create .DLL
/ W+ s2 ~/ r3 u& h/F 设置堆栈大小 set stack size 7 F; B! D- v. f1 ?# [$ m
/LDd 创建 .DLL 调试库 Create .DLL debug libary
" F7 s8 i0 W, l/link [链接器选项和库] [linker options and libraries] |
|