|
|
-优化-) R% V$ f2 n" q( T& Z, o! ~7 M
/O1 最小化空间 minimize space . \' C4 a0 ?7 G; F
/Op[-] 改善浮点数一致性 improve floating-pt consistency
' @/ e2 F7 f7 T0 P" g$ F q/O2 最大化速度 maximize speed
) x/ Z) ` J0 U6 [: e2 L/Os 优选代码空间 favor code space
! T. J1 {+ p! Y4 B2 y6 e/Oa 假设没有别名 assume no aliasing - C- }( P) [6 T6 g6 O
/Ot 优选代码速度 favor code speed 3 l+ j; G! {. M3 K h( E
/Ob 内联展开(默认 n=0) inline expansion (default n=0)
' ?+ e+ a n) r/ x& F/Ow 假设交叉函数别名 assume cross-function aliasing
6 s/ d) l8 q$ Q. ^; T8 B/Od 禁用优化(默认值) disable optimizations (default) + b7 Y8 S9 C6 f9 H
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) * a0 ~1 z- B/ ?9 C& o1 F: a( q
/Og 启用全局优化 enable global optimization
0 z! T0 g% [1 e8 [& b. K2 U3 }( P/Oy[-] 启用框架指针省略 enable frame pointer omission . l" s- J9 d2 ?1 o. q/ o/ A
/Oi 启用内建函数 enable intrinsic functions
' J* Q$ _9 }8 W+ e& L
7 c4 ?$ R. w3 [" `3 [5 w-代码生成-
8 ^5 B& J' N( H* \$ K3 b2 j) W/G3 为 80386 进行优化 optimize for 80386 $ |9 f2 ?5 c5 t
/G4 为 80486 进行优化 optimize for 80486
- N, i" j7 K- ? y. I- A- k0 B/GR[-] 启用 C++ RTTI enable C++ RTTI
% F/ K: c! m) V/G5 为 Pentium 进行优化 optimize for Pentium
: o4 t, c) i# J/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro " H# O% v+ |( p5 t; {
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
3 R9 e/ t$ K5 Y9 b" V% h0 R/ B% a: x/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH " B' h* D R+ }5 G, E1 `0 K
/GD 为 Windows DLL 进行优化 optimize for Windows DLL
. {& E) n" h; Y0 o( x) q/GB 为混合模型进行优化(默认) optimize for blended model (default)
( Y' f ~0 Q' t& k! K: E/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
( q2 a) q9 m9 n( c9 ^/Gd __cdecl 调用约定 __cdecl calling convention
+ P3 i0 T# v8 m7 I z" P/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow - {; E$ o& h( P1 p4 a
/Gr __fastcall 调用约定 __fastcall calling convention
0 B5 a5 }; k6 G* I3 H/Gi[-] 启用增量编译 enable incremental compilation i& f/ ]9 |# x1 J
/Gz __stdcall 调用约定 __stdcall calling convention
0 N# E9 S+ d0 R' i3 W/Gm[-] 启用最小重新生成 enable minimal rebuild
# K9 q$ ], s S/ J0 k/GA 为 Windows 应用程序进行优化 optimize for Windows Application `) x$ J- G! t
/Gf 启用字符串池 enable string pooling 9 s4 O/ J8 j7 l/ z* l3 ]. h
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix 7 k! {4 z( Q, Q6 n, Q# s9 X
/GF 启用只读字符串池 enable read-only string pooling ' K) u7 S+ j5 I2 @' ]
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
4 a+ G* d1 K/ x" M/Gy 分隔链接器函数 separate functions for linker
; w. [5 G) k: C8 e z/GZ 启用运行时调试检查 enable runtime debug checks ' Q" U% J- }, z% W3 J" x [. u
/Gh 启用钩子函数调用 enable hook function call
% Z+ x. U0 w$ J7 b/Ge 对所有函数强制堆栈检查 force stack checking for all funcs ; H: Z5 V6 Q# z) M' Z
/Gs[num] 禁用堆栈检查调用 disable stack checking calls
4 b- `& T) H3 t: d7 w( w7 I$ w3 U9 T. a9 ?
-输出文件- 9 g* i/ E2 _% \( h1 ^0 {
/Fa[file] 命名程序集列表文件 name assembly listing file
# O/ S3 Q# N. k, k8 }; j7 v* `& g& y/Fo 命名对象文件 name object file
' b5 J0 R4 K! T( {- h) d# E/FA[sc] 配置程序集列表 configure assembly listing
$ p% Z1 j9 L- b8 k* d9 B/Fp 命名预编译头文件 name precompiled header file * B& k) I, Z0 u* a" C, z0 _
/Fd[file] 命名 .PDB 文件 name .PDB file
" Q% ]7 E' u7 O% d$ L- q) K( j/Fr[file] 命名源浏览器文件 name source browser file . U7 i, c( n- ]/ R4 B8 {0 J1 ?2 \
/Fe 命名可执行文件 name executable file $ O; k' x) P7 q* a: U. L- @, @
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
# R7 P) `, {' R5 A h/Fm[file] 命名映射文件 name map file ( _# C: k( B5 y. w
) a! a3 ]% H+ Z5 r-预处理器- " `0 Q8 u! E' K8 [% q- f
/FI 命名强制包含文件 name forced include file / |1 `. D) g) x
/C 不吸取注释 don't strip comments
. I! S4 E: K0 b) G/ x7 K/U 移除预定义宏 remove predefined macro $ S0 I" R! U, \
/D{=|#} 定义宏 define macro # i$ P7 j' r7 U* y, F# n" Z
/u 移除所有预定义宏 remove all predefined macros / T4 O6 e( l; S1 P: Q/ W, q
/E 将预处理定向到标准输出 preprocess to stdout
* d" L& S! ^; [7 u. `- e/I 添加到包含文件的搜索路径 add to include search path
- T% X6 _4 k8 K/ u" R/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
/ F" |: L- ?, M* ?/X 忽略“标准位置” ignore "standard places"
7 g0 |* `& z' l9 J) {1 m; @/P 预处理到文件 preprocess to file $ D& b8 n6 E5 ?2 S& p6 N( F
* f0 w4 j. t# u( P" a/ z, N-语言-
( x+ {- Q, R7 ]2 t/Zi 启用调试信息 enable debugging information $ e% \4 ?% a' K7 S% l2 i
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ ) e+ Z% U& {8 V" S
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info * ?" b8 G9 n7 H4 B4 E
/Zg 生成函数原型 generate function prototypes
/ F f* x) f# x. o( G/Z7 启用旧式调试信息 enable old-style debug info * D9 |8 }+ t& U$ n- V
/Zs 只进行语法检查 syntax check only 1 Z: S5 b T* ~ l
/Zd 仅要行号调试信息 line number debugging info only + D+ W6 b8 [9 e5 V q3 q0 n, P
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
9 ]4 K$ u( {9 s! B/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary 3 R! ~6 E& q2 N
/vm 指向成员的指针类型 type of pointers to members
) W3 I" T z& A0 a8 z" P/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
2 V: v C$ f" Q( p/ _" w/noBool 禁用“bool”关键字 disable "bool" keyword & Q# ]' Z' v0 @ @3 z
/Ze 启用扩展(默认) enable extensions (default) J; Q/ \, @1 P7 I0 J( z
3 @' D* j& q# I/ Z0 X
- 杂项 -
0 u3 X8 Q" a3 r5 @2 m* l j! X/?, /help 打印此帮助消息 print this help message 7 m: p' `) H+ |& T
/c 只编译,不链接 compile only, no link
, i6 o: `: E4 E5 U/W 设置警告等级(默认 n=1) set warning level (default n=1)
0 T; \$ @( B; l0 f6 q/H 最大化外部名称长度 max external name length
( w9 X% u4 s6 E; G, @8 g/J 默认 char 类型是 unsigned default char type is unsigned
; l1 q' m' y- z) X* @) |/nologo 取消显示版权消息 suppress copyright message ) M! j1 T S- \& F4 @
/WX 将警告视为错误 treat warnings as errors
. I7 n2 C& I1 e. U$ _/Tc 将文件编译为 .c compile file as .c
! | {9 O# U; m" R1 M; T+ m2 N/Yc[file] 创建 .PCH 文件 create .PCH file
1 \4 f$ Q# @" } s5 F3 q( c A% K" f8 ?/Tp 将文件编译为 .cpp compile file as .cpp w. f& Q5 [+ v0 E1 H3 d$ v% y
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ ' _# p/ V1 J! c ^
/TC 将所有文件编译为 .c compile all files as .c 0 K2 t5 V- N# N: v
/TP 将所有文件编译为 .cpp compile all files as .cpp 5 z0 v7 V* @* r6 [7 K n! a0 y* U
/Yu[file] 使用 .PCH 文件 use .PCH file
- I7 i( |' ]5 N. p- g8 M/V 设置版本字符串 set version string ! ^! U! z0 Q4 Y, Z2 X, b& a
/YX[file] 自动的 .PCH 文件 automatic .PCH
9 ^6 l/ x5 i+ T# W/w 禁用所有警告 disable all warnings 1 c, Q8 L& H% o6 o, l) e
/Zm 最大内存分配(默认为 %) max memory alloc (% of default) / Z+ I4 e$ x3 k$ A1 h6 B' e
9 l$ m; \9 v; c1 p$ b9 e
-链接- . \6 P M8 L- G. q, c$ `9 K
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
7 |# o! [, G# w1 {) B/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib + g' X2 x9 B0 D( S; k+ g
/ML 与 LIBC.LIB 链接 link with LIBC.LIB 2 o0 p: _- ^7 o
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
6 I. C7 P8 M( o2 D5 e) c/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
; x% }7 s' }$ Z' @ d; G3 u/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
9 q m: h- W) k% [4 P- n& s/LD 创建 .DLL Create .DLL
- h2 g D+ t$ c4 c6 x7 }; `/F 设置堆栈大小 set stack size " O+ d/ g# r( g0 o# l- I) {- {
/LDd 创建 .DLL 调试库 Create .DLL debug libary 8 ?. r2 C/ x9 Q* ~. \& ?7 O' M
/link [链接器选项和库] [linker options and libraries] |
|