|
|
-优化-3 D* @$ u+ m! U3 R ^
/O1 最小化空间 minimize space ' t7 N1 t& @' K8 O
/Op[-] 改善浮点数一致性 improve floating-pt consistency ' V6 `# N% q1 S0 P) a1 O/ k
/O2 最大化速度 maximize speed " w/ V9 I" g0 Z( h. j" D
/Os 优选代码空间 favor code space $ p$ k6 c$ a2 ?
/Oa 假设没有别名 assume no aliasing 6 |( b% z Z& ]5 w- G- I1 F
/Ot 优选代码速度 favor code speed
2 D$ T9 @* d& m9 `/Ob 内联展开(默认 n=0) inline expansion (default n=0) * f- L* r$ R& \ @8 G
/Ow 假设交叉函数别名 assume cross-function aliasing 8 a' I2 D$ Q i& Y
/Od 禁用优化(默认值) disable optimizations (default) 7 Y5 J6 w6 v7 W8 S+ r3 a
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
. X$ y, |6 p% ^4 O3 G. R/Og 启用全局优化 enable global optimization : i. q: ?) g& Y8 q# V/ ]( \
/Oy[-] 启用框架指针省略 enable frame pointer omission ! L& f2 m+ ]* B) B
/Oi 启用内建函数 enable intrinsic functions : g: U" y& T2 v0 P3 t& W
. Z' m) c6 j7 o2 E% h. k- d-代码生成-
2 A1 q+ Y9 Y' b: B/G3 为 80386 进行优化 optimize for 80386 6 p) o1 f" \- Z) W
/G4 为 80486 进行优化 optimize for 80486
. F5 L( w6 M" t5 }/GR[-] 启用 C++ RTTI enable C++ RTTI , s2 ?. {7 d- `7 K- }6 l5 |+ J) C
/G5 为 Pentium 进行优化 optimize for Pentium
, K4 R3 r, _- L- ]+ D* p! L/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
/ H1 g( w6 J4 {* r8 ?0 z/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
3 b$ j( e5 N9 i: o/ m1 R2 x" G/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH
; ^8 N! e7 w/ u: }& X z9 x/GD 为 Windows DLL 进行优化 optimize for Windows DLL
& M$ \/ u1 S7 G/GB 为混合模型进行优化(默认) optimize for blended model (default)
i# j* p$ h4 R9 J/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
/ v' s+ m% }) y% o: M u* J* Z! R0 o/Gd __cdecl 调用约定 __cdecl calling convention
% }7 M' A' ^" l: j/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
( ~ D1 b$ L% n; ~/Gr __fastcall 调用约定 __fastcall calling convention
$ S' ?: z% y1 K/Gi[-] 启用增量编译 enable incremental compilation " r1 V z5 \5 n! z
/Gz __stdcall 调用约定 __stdcall calling convention
' Q# A9 L! L; B0 U# S% T/Gm[-] 启用最小重新生成 enable minimal rebuild , {0 ?9 H" H/ L% U3 y4 d" Y7 s# c
/GA 为 Windows 应用程序进行优化 optimize for Windows Application & g. C# S( V8 w3 g4 _
/Gf 启用字符串池 enable string pooling ( n& N8 ^* J( O3 I1 ^0 W3 H
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
, u# a- P; ~* h- ?% {3 d3 W/GF 启用只读字符串池 enable read-only string pooling ) G) g; @8 j; V: I
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
% }' i' n8 n: H' p/Gy 分隔链接器函数 separate functions for linker
! R. {" U# L" Z( }9 t/GZ 启用运行时调试检查 enable runtime debug checks ) g2 b1 S) a) K
/Gh 启用钩子函数调用 enable hook function call
: v( S! ?' }$ j F: e/ i) B/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
. g' S/ d7 f. o1 |$ ?3 t/Gs[num] 禁用堆栈检查调用 disable stack checking calls - m" `6 ~& P' ~. R3 S
# H G- }+ w! H' Z7 k-输出文件- " b/ A' T% P( l3 t7 R
/Fa[file] 命名程序集列表文件 name assembly listing file ! ?' I- L7 H9 q$ l
/Fo 命名对象文件 name object file
2 U, ~2 Q% l3 h- ], H/FA[sc] 配置程序集列表 configure assembly listing
) V8 k4 g( m, P3 w2 \- D/Fp 命名预编译头文件 name precompiled header file 5 {. N% W/ b2 r" A" h
/Fd[file] 命名 .PDB 文件 name .PDB file * ]3 M9 U4 u1 N! K- t' ]0 \
/Fr[file] 命名源浏览器文件 name source browser file
& c) g5 z0 L/ L& y/Fe 命名可执行文件 name executable file
$ Q" M7 I* v6 q! g& ]0 R/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
7 i; _: q: j4 G) R8 m/Fm[file] 命名映射文件 name map file
7 O2 ^. E0 E9 C. w5 M9 H% V; ~. q: X
-预处理器-
$ y3 V5 `- W* P* R$ `8 M% c/FI 命名强制包含文件 name forced include file ! f* I( k8 |9 ~( v: U
/C 不吸取注释 don't strip comments
7 E; T8 q! N) I% O8 t6 N/U 移除预定义宏 remove predefined macro
2 J$ o" G& x/ _6 ^- L2 [/D{=|#} 定义宏 define macro 4 n7 t) H1 n3 C' R( c' g
/u 移除所有预定义宏 remove all predefined macros + Z* b( i$ I( k! J p
/E 将预处理定向到标准输出 preprocess to stdout 6 u: w8 a7 [' m/ x @
/I 添加到包含文件的搜索路径 add to include search path
: r8 J) H& Z) b. z. }1 |/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
+ F7 a! ?* h0 ^4 b% H/X 忽略“标准位置” ignore "standard places"
Y8 u; p/ `) ]- t E/P 预处理到文件 preprocess to file
R. B n8 m( i6 V) J$ y. s3 b6 y7 i7 V1 L1 t3 S
-语言- $ o9 v" @' K: } r
/Zi 启用调试信息 enable debugging information ! n& f% ?+ |6 v
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
z0 ]7 g- N5 F/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
; n/ Q' I) e. f5 @( D3 L6 A/Zg 生成函数原型 generate function prototypes 7 M5 ~% O' X! E% y
/Z7 启用旧式调试信息 enable old-style debug info 6 c2 T0 F3 y8 ?; `4 s1 n3 }
/Zs 只进行语法检查 syntax check only - L! {0 H$ @2 b$ H, Q
/Zd 仅要行号调试信息 line number debugging info only
' \- g/ Q& G8 |) W8 N3 l/ C/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
4 `5 e! C. A! g' ~) W0 M# x/ O/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary 7 U( v: Y$ g r1 j6 n2 s
/vm 指向成员的指针类型 type of pointers to members
6 f: `3 u' W1 ~7 L! _( O/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
! {& G) z7 Z# k/noBool 禁用“bool”关键字 disable "bool" keyword
) A& x( `+ p4 Z5 C. s: p# G8 ]4 X/Ze 启用扩展(默认) enable extensions (default) / F2 m4 e, ^% a) g" @
$ D! `* X+ S, V7 }1 L- 杂项 -
& u/ b" u5 W1 s4 l/?, /help 打印此帮助消息 print this help message ; p- G1 O! q6 M- P
/c 只编译,不链接 compile only, no link 2 R* W! z0 l c( C1 e* {% `0 _
/W 设置警告等级(默认 n=1) set warning level (default n=1) ( l2 P, B/ E# M; Y7 r
/H 最大化外部名称长度 max external name length # ?6 i& Q) m- w& U: _: y
/J 默认 char 类型是 unsigned default char type is unsigned # ^6 A9 [( x/ j6 \- ]
/nologo 取消显示版权消息 suppress copyright message e% x4 S2 A% K/ N
/WX 将警告视为错误 treat warnings as errors
% r* A! s, |0 ?8 O& C+ N! g/Tc 将文件编译为 .c compile file as .c % {% ^. F9 E$ T! w. j- S
/Yc[file] 创建 .PCH 文件 create .PCH file 0 D# N; J1 ~1 a& W
/Tp 将文件编译为 .cpp compile file as .cpp ! H5 L- J. \( }
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
" ?9 l9 B# n# j' c) C% t/TC 将所有文件编译为 .c compile all files as .c 9 j/ h% q* ^( i- n. l
/TP 将所有文件编译为 .cpp compile all files as .cpp ( R" B2 X; o E1 B8 \
/Yu[file] 使用 .PCH 文件 use .PCH file , o$ B0 _; u" O1 w- c( x
/V 设置版本字符串 set version string
7 J/ o7 l t' Q8 N/YX[file] 自动的 .PCH 文件 automatic .PCH
5 P2 A i' k1 A: `' W! A# }/w 禁用所有警告 disable all warnings ) f' d6 J3 W- o
/Zm 最大内存分配(默认为 %) max memory alloc (% of default) $ O1 \! O% m7 i3 d
6 u( E* z7 s+ a9 \1 g2 l! J, M
-链接-
6 G6 N3 g$ t7 Y/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
" Q5 I- K3 _% J0 W X* l5 N/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib
! T/ w' A9 Z0 _, r( x/ML 与 LIBC.LIB 链接 link with LIBC.LIB ( E0 L5 n0 Y. I% R- j
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib % R. i* }* W U! ~* p
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
, U0 `1 w- x/ ^# Q, j/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
$ M( l3 G5 m7 U d7 T/LD 创建 .DLL Create .DLL 9 e# t" A- ~( F
/F 设置堆栈大小 set stack size ' Q3 Z j- W8 @9 i9 G) @
/LDd 创建 .DLL 调试库 Create .DLL debug libary 7 f7 L" Q* L2 Q! L
/link [链接器选项和库] [linker options and libraries] |
|