|
-优化-
1 g: d: U$ D; v) E" R3 a- Q% w/O1 最小化空间 minimize space 6 \# y# Z7 `4 q* T2 a' Q) S7 V
/Op[-] 改善浮点数一致性 improve floating-pt consistency
" @3 k% d! C9 A" Y8 S/O2 最大化速度 maximize speed
. ^, @4 U u; z) W, S* f/Os 优选代码空间 favor code space # d/ n( M' u2 c% z* ~
/Oa 假设没有别名 assume no aliasing
% y# D# c, Q8 S N3 z+ e/Ot 优选代码速度 favor code speed
5 l \% B4 s) h3 h3 p/Ob 内联展开(默认 n=0) inline expansion (default n=0) : u2 h7 t( I/ K! R+ G9 Z
/Ow 假设交叉函数别名 assume cross-function aliasing # G. ~0 r. h' O& ~# s, K: j6 |
/Od 禁用优化(默认值) disable optimizations (default) 9 R) H1 S1 p" k: V! e
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) ; p0 g- T* [/ V( J( `; g% U4 _- g
/Og 启用全局优化 enable global optimization
J2 q) c& [* B/Oy[-] 启用框架指针省略 enable frame pointer omission
% v* ?% S# t" P1 _/Oi 启用内建函数 enable intrinsic functions
4 j! |5 l: K) U9 C3 X: _4 R8 G0 h! B- P S) @
-代码生成- + P) C" S6 |8 E4 i; m9 [3 q" Q
/G3 为 80386 进行优化 optimize for 80386
8 B- u0 l8 i6 @& j2 s6 U) V j/G4 为 80486 进行优化 optimize for 80486
- n c4 z" K6 P$ i3 s6 \4 x" D5 }3 [/GR[-] 启用 C++ RTTI enable C++ RTTI
. ?' d' k$ F& E3 [7 E* j! C/G5 为 Pentium 进行优化 optimize for Pentium 6 Q6 s, @& v7 t' q8 K# y: {
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro 8 {" i; |$ q+ q2 f+ {! j' k
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) 5 B& E. b$ q- R$ l# i
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH V2 v4 ~/ g: g R) n) e
/GD 为 Windows DLL 进行优化 optimize for Windows DLL
$ R% ^/ ~+ b, a9 \' @/GB 为混合模型进行优化(默认) optimize for blended model (default) ) N' {* |' J* Z& Z
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
8 l1 [) j, {+ A! z# `, J/Gd __cdecl 调用约定 __cdecl calling convention
7 F' C' s4 W+ P* D, y/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow * K% \5 ?( y2 Q1 I
/Gr __fastcall 调用约定 __fastcall calling convention
! ?; C3 O# B, d7 P5 w/Gi[-] 启用增量编译 enable incremental compilation 8 j$ P# F8 b4 y; ], e) w k
/Gz __stdcall 调用约定 __stdcall calling convention # s4 v [) L# G+ a; f7 m# k7 q/ v
/Gm[-] 启用最小重新生成 enable minimal rebuild 4 m/ A2 B; E3 Q$ O9 s" Q
/GA 为 Windows 应用程序进行优化 optimize for Windows Application
- t( M: J6 P/ {- K6 ]- H( w/Gf 启用字符串池 enable string pooling # t% {, X I7 s! Z
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
% k9 L$ w" B; M9 b/GF 启用只读字符串池 enable read-only string pooling $ Y( @( B' O( H, a: Z* K! s
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
2 V/ q f, _+ D# R$ p/Gy 分隔链接器函数 separate functions for linker . [ M1 W+ M! g G
/GZ 启用运行时调试检查 enable runtime debug checks
9 t5 Y2 K8 d9 `/Gh 启用钩子函数调用 enable hook function call ( J5 A4 i: N0 M- \
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs + j2 X, J- @& t, Z2 ?; n
/Gs[num] 禁用堆栈检查调用 disable stack checking calls 8 `; W8 ?1 F1 g8 i2 W) [2 ^; P
0 w3 S- ?$ u! A: Z- |-输出文件-
! }5 K [. e" z" m: [" |/Fa[file] 命名程序集列表文件 name assembly listing file \+ z- ^; c1 s
/Fo 命名对象文件 name object file 6 h( o/ J( {) x% }) `+ z
/FA[sc] 配置程序集列表 configure assembly listing , ?; F) n& Z( b5 U6 @
/Fp 命名预编译头文件 name precompiled header file - y: u, L( D, D6 L1 K
/Fd[file] 命名 .PDB 文件 name .PDB file # W3 p! V0 `) x7 \2 r
/Fr[file] 命名源浏览器文件 name source browser file
5 ?( I! B" h) d/Fe 命名可执行文件 name executable file
* M8 s7 g: e% |/ u& L/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
9 |3 k/ i9 t3 Z- ]: q( j# R/Fm[file] 命名映射文件 name map file 1 U1 W: C( e9 ^( w6 s
# J+ q' ?( g! s1 [5 ^& Y5 E-预处理器-
" b, X+ Q; s8 Q* [! x+ W6 K/FI 命名强制包含文件 name forced include file
: _/ d+ B7 z4 x" Q" R/C 不吸取注释 don't strip comments
- ]$ O, e3 H! T: t8 e/U 移除预定义宏 remove predefined macro - C9 J! u @7 M/ `, @- i( E1 h2 G4 V
/D{=|#} 定义宏 define macro ; I% z$ c+ E5 W1 Y- U
/u 移除所有预定义宏 remove all predefined macros
) d' s3 c6 s3 L& m/E 将预处理定向到标准输出 preprocess to stdout 8 D9 C v% @( W2 j# @& C, N* Z
/I 添加到包含文件的搜索路径 add to include search path
0 V6 f0 I9 n8 r( \7 ^/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
' L" U9 S' U |% P/X 忽略“标准位置” ignore "standard places"
/ C. y- v$ s3 u( o6 B, c. Q M/P 预处理到文件 preprocess to file
% k1 P) X- h0 m" Y
! z2 c B! \% F-语言- % T/ @# I; ]+ R% G# X) ~. G
/Zi 启用调试信息 enable debugging information
* c c& n& B2 j2 h* [: h/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ
6 _' \$ X6 K) _" \+ I3 W2 [: F/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
u1 B& ~0 ]! _, N/Zg 生成函数原型 generate function prototypes % q' |6 M7 o3 M& l
/Z7 启用旧式调试信息 enable old-style debug info
( w: y& Z# d; ^& W" j% a/Zs 只进行语法检查 syntax check only 4 T" q4 ? B6 o) r
/Zd 仅要行号调试信息 line number debugging info only 0 N3 R0 l) B1 C. _* w
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp 5 x5 i; b2 z2 o( A% A, E/ t' S
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary 8 w) k2 L5 \+ e" t8 J% K
/vm 指向成员的指针类型 type of pointers to members
+ @" ~' M! j3 K. F: M1 v/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
4 m# \# o7 t6 m/noBool 禁用“bool”关键字 disable "bool" keyword
6 m2 b0 j+ @. u; n/Ze 启用扩展(默认) enable extensions (default)
1 B9 z" W: f( M9 X6 X% l8 `
2 d2 V# R9 s# i# ~+ H- 杂项 - 8 F4 I% u: T+ y/ Y, @
/?, /help 打印此帮助消息 print this help message 6 K, G+ E* ?4 Z" ]' N; H. j0 H
/c 只编译,不链接 compile only, no link
! w @$ Z$ f; c& ]# I/W 设置警告等级(默认 n=1) set warning level (default n=1)
* z' M3 ]( s4 ?' w5 F$ o5 H/H 最大化外部名称长度 max external name length
. ]; j. g% c8 d S* f9 Y* l0 \4 ^. ^# O! M/J 默认 char 类型是 unsigned default char type is unsigned
0 J' v* R$ o9 t; D; B- v/nologo 取消显示版权消息 suppress copyright message 4 |5 E1 c2 s4 c7 c0 t
/WX 将警告视为错误 treat warnings as errors
% P8 Z7 h# p$ j, _" F- m/Tc 将文件编译为 .c compile file as .c
9 h- Z6 [: y: D+ {, {0 o/Yc[file] 创建 .PCH 文件 create .PCH file
5 y6 h3 z ?2 k& ?6 L* E/Tp 将文件编译为 .cpp compile file as .cpp
$ u2 T3 }8 W- d% J( {! V# @# S/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
- h( N$ k) M! ~* b+ U/ o/TC 将所有文件编译为 .c compile all files as .c
* q6 t- \4 T& m6 J: m* Q/TP 将所有文件编译为 .cpp compile all files as .cpp + X1 D+ n! E# a- c+ }1 q2 m8 S- U
/Yu[file] 使用 .PCH 文件 use .PCH file
: P* o7 H" ?. u: f. L- z% j/V 设置版本字符串 set version string
. S3 @$ l8 J3 O7 {0 \3 _2 W/YX[file] 自动的 .PCH 文件 automatic .PCH
9 t v' }4 x& D) z4 C d- _/w 禁用所有警告 disable all warnings 1 p% }! E! Y7 E. |* @5 p; L- w
/Zm 最大内存分配(默认为 %) max memory alloc (% of default) % Q- o* q$ y/ f8 u; P! m7 ]) A' e
( M& W8 ~9 l) m, ]
-链接-
0 G" M+ W$ h* i0 o' S/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
# \7 F; [, m# |* }/ X8 t/ v/ T8 ^/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib + ?0 m$ J: o1 K, O! \4 E% Q2 c3 v0 f' v
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
+ x! ~1 A: a, z' \6 m9 f9 l/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
* b8 G+ R7 b8 K: P/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB % s9 e+ X2 i9 c {# P) q5 @
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib Y) N& h; Z! D
/LD 创建 .DLL Create .DLL - V: G! c* m. Z& V+ c
/F 设置堆栈大小 set stack size
; e6 \, `( }+ z/LDd 创建 .DLL 调试库 Create .DLL debug libary , s5 @) o1 v3 j J# j2 G; q* S. h8 f
/link [链接器选项和库] [linker options and libraries] |
|