|
|
-优化- ^! I/ n% \5 u; j' B
/O1 最小化空间 minimize space B+ `/ g- D, l& }
/Op[-] 改善浮点数一致性 improve floating-pt consistency ) j. i" x4 B( g) E% N
/O2 最大化速度 maximize speed * V; {: J( {& m3 ~* |2 Y) X. r
/Os 优选代码空间 favor code space
& h/ y; G) }8 v6 q6 `( ~& a1 @5 w/Oa 假设没有别名 assume no aliasing ( v" i$ P# \2 F" h. c
/Ot 优选代码速度 favor code speed ( V c1 U' g+ V" f0 B0 K
/Ob 内联展开(默认 n=0) inline expansion (default n=0) ( j* b: H- l; J+ b# p5 B
/Ow 假设交叉函数别名 assume cross-function aliasing . W4 V3 o( l2 n; @/ J7 y2 G
/Od 禁用优化(默认值) disable optimizations (default) ) }$ Z3 |% O) T* R; F3 ?7 ^
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
2 a" s# r. K0 {- K; p, B/Og 启用全局优化 enable global optimization
]9 X( u* _- q' C6 y C* Q; A/Oy[-] 启用框架指针省略 enable frame pointer omission
: u1 ?0 } J/ E! Y6 A2 @/Oi 启用内建函数 enable intrinsic functions 0 `( E( L/ N9 o* W6 Q0 f; F
. d2 M" j1 F i2 `: _, V t
-代码生成-
: x- J& q [0 X6 r! S/G3 为 80386 进行优化 optimize for 80386 $ r% D3 V. l; V5 J
/G4 为 80486 进行优化 optimize for 80486
- Z* d, @+ J' G$ c/GR[-] 启用 C++ RTTI enable C++ RTTI 5 c& A% ]- j. E
/G5 为 Pentium 进行优化 optimize for Pentium 0 S" B% U3 h& j2 R, ^* M
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro / i+ p8 f' ~! _: _( |
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) $ I* d) F& p; r# T. r) y5 u& E# x
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH # a3 P" @* U# W' w6 {/ O
/GD 为 Windows DLL 进行优化 optimize for Windows DLL |! N5 R3 M6 W: e# \
/GB 为混合模型进行优化(默认) optimize for blended model (default) * H8 {6 I. a. W/ t$ r0 \ ~
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
0 e% L ^+ B C' R6 N/Gd __cdecl 调用约定 __cdecl calling convention
% N! ^2 R! Q8 R! C+ X0 a/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
: @$ |, R) c7 F( D5 I% a/Gr __fastcall 调用约定 __fastcall calling convention
' G# }7 s. d5 X$ V! E/Gi[-] 启用增量编译 enable incremental compilation
9 |6 U. @% a. a0 {+ R. K A0 M/Gz __stdcall 调用约定 __stdcall calling convention
: N7 B9 X3 {; N' Q0 T/Gm[-] 启用最小重新生成 enable minimal rebuild # d z3 H1 b1 } u& `$ E6 W3 e) Y' h5 ~
/GA 为 Windows 应用程序进行优化 optimize for Windows Application 3 T" r9 Y! h$ W; G2 X4 H5 t
/Gf 启用字符串池 enable string pooling
" C- d1 r4 k. E/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
% b( ]5 m% r1 w w5 Z7 {& b/GF 启用只读字符串池 enable read-only string pooling ; a# |3 ]- p- R3 p' k/ Y
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
% o# U# I& g$ A- p9 [( J- O/Gy 分隔链接器函数 separate functions for linker ' z7 ~0 o% L# U9 F* h
/GZ 启用运行时调试检查 enable runtime debug checks ( l6 o; }+ U) j) S2 u
/Gh 启用钩子函数调用 enable hook function call
" U8 W X9 u8 Q% U% Y/Ge 对所有函数强制堆栈检查 force stack checking for all funcs # s! r1 W( v# z6 V) Z, l/ ?5 e
/Gs[num] 禁用堆栈检查调用 disable stack checking calls ) z: ] O! U/ P# W. Y
% E0 }* z, k) d% c-输出文件-
! P; [8 @* ]8 R- Y7 J6 s6 f4 W. S/Fa[file] 命名程序集列表文件 name assembly listing file
: F9 c+ b% F0 w/ r2 l* X/Fo 命名对象文件 name object file
( W1 G( ?) B" s! U8 E8 w/FA[sc] 配置程序集列表 configure assembly listing
# _1 d4 G+ K% `' @ D/Fp 命名预编译头文件 name precompiled header file
$ S$ ?7 |0 B' e/ g @" t) C8 t/Fd[file] 命名 .PDB 文件 name .PDB file 3 N' C3 c- L! ?# {; |1 o
/Fr[file] 命名源浏览器文件 name source browser file i0 V% H' m3 k5 z8 E! n+ z) _, m
/Fe 命名可执行文件 name executable file
- M5 u+ L0 \! _* K; u/FR[file] 命名扩展 .SBR 文件 name extended .SBR file $ e- ]/ R; I2 h ~
/Fm[file] 命名映射文件 name map file
* k- v( ~4 Z, }# h" g& q
4 p+ P% D, o/ C' M1 ?7 C! O Z-预处理器- * x) ?" {6 i. f0 b' M
/FI 命名强制包含文件 name forced include file
) ?5 L4 W7 t; W2 V) s8 x/C 不吸取注释 don't strip comments , _* b; t- n) K5 K8 A: u) {" R% I0 @
/U 移除预定义宏 remove predefined macro ' _% V8 n) a+ N6 m. m+ n# O
/D{=|#} 定义宏 define macro
6 S8 _8 g$ I% C' d; ~/u 移除所有预定义宏 remove all predefined macros
% A3 Q4 x S/ W* [6 W/E 将预处理定向到标准输出 preprocess to stdout 9 g( }: a3 o7 `" [: j
/I 添加到包含文件的搜索路径 add to include search path ) y6 Q; d- q& d7 }8 t% c- Q
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line / M& C0 _+ ?. p1 Q ~/ p
/X 忽略“标准位置” ignore "standard places"
! U/ Q- f1 G q2 B- i+ r/P 预处理到文件 preprocess to file
( L0 o4 h3 o7 `+ ~& N% W6 j# a2 f# H4 B4 C- G! t
-语言- V& [2 ~9 n0 x! ]
/Zi 启用调试信息 enable debugging information . Q4 y, \* C- q3 Q. _# h D! W
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
7 E2 m9 d. Q0 I/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info - ^- U: s. f9 [- ~1 G* _- x& A
/Zg 生成函数原型 generate function prototypes
5 l: \7 R% n1 q! ]/Z7 启用旧式调试信息 enable old-style debug info ) y8 a' d# a# J
/Zs 只进行语法检查 syntax check only 5 Z4 T& i8 I: q* E
/Zd 仅要行号调试信息 line number debugging info only 4 Q `! f1 h: O
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
* K g* Q8 r. Z! r- ^/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary . k3 i' K P8 a/ j& y( O% [. n. O' n
/vm 指向成员的指针类型 type of pointers to members 6 C4 g6 f4 `/ ~& U, N
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
. Y! p9 Q7 n9 \ R. _# N7 ~' T/noBool 禁用“bool”关键字 disable "bool" keyword
6 C) E( r# t9 ?: w i/Ze 启用扩展(默认) enable extensions (default)
) j5 e8 [7 H( y& J$ n" m
" L/ b$ x) M( I- N- 杂项 -
$ R8 [5 j; J5 a1 U) U) t6 W. h, t/?, /help 打印此帮助消息 print this help message & a( n, d8 `) R4 r' q$ \% \
/c 只编译,不链接 compile only, no link ( s' C9 w- X& b5 r2 u
/W 设置警告等级(默认 n=1) set warning level (default n=1) 9 p1 T# \8 i0 Q! ]+ m
/H 最大化外部名称长度 max external name length , u- K" [1 |1 r( y6 H5 ?$ E
/J 默认 char 类型是 unsigned default char type is unsigned 7 Q/ b: [" u5 g" \( H: p
/nologo 取消显示版权消息 suppress copyright message , L! E! T" _+ P0 F
/WX 将警告视为错误 treat warnings as errors # r3 ] P4 u* v7 q
/Tc 将文件编译为 .c compile file as .c 8 d; F1 A4 s" X
/Yc[file] 创建 .PCH 文件 create .PCH file
; r& G O3 W$ a/Tp 将文件编译为 .cpp compile file as .cpp
/ Y$ f5 q4 D9 q* Z/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ " U8 V- x6 N: n
/TC 将所有文件编译为 .c compile all files as .c ' u/ B' R# H2 q; `% D2 w
/TP 将所有文件编译为 .cpp compile all files as .cpp
+ f9 m# ~/ G4 _* s9 q, s4 u8 a, n! Q/ V/Yu[file] 使用 .PCH 文件 use .PCH file
9 _8 q: O7 r5 S3 u# q0 ]/V 设置版本字符串 set version string . f( C, Q# \" t' B
/YX[file] 自动的 .PCH 文件 automatic .PCH
) |( w, a+ C4 l0 i: M/ d7 D4 C3 }/w 禁用所有警告 disable all warnings
- I6 h8 J+ | d5 U4 D/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
. C% v# G( m: _3 [6 x2 d
' J3 a: [* J4 j- W-链接- : H) c6 Y. D& L2 S
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
[- @# X/ p8 G( ~/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib 5 l2 g b1 V! i& i9 m
/ML 与 LIBC.LIB 链接 link with LIBC.LIB 6 U0 X2 Y8 K9 b; e8 _; a
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib ( X! E9 ]$ r% d$ w/ s
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB : _( |! y! A6 V. t2 u( o0 q
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
6 x8 Y* I8 v3 c: p2 S/LD 创建 .DLL Create .DLL " n$ Q' H5 s0 T' K, D
/F 设置堆栈大小 set stack size ! b% ~6 q& G i. w
/LDd 创建 .DLL 调试库 Create .DLL debug libary
- e6 \2 b( M# v1 f3 A* a: t2 e; k) J. ?/link [链接器选项和库] [linker options and libraries] |
|