|
|
-优化-
$ j5 U9 C+ d- u1 v) o3 H/O1 最小化空间 minimize space
: A: M: o- I! O/Op[-] 改善浮点数一致性 improve floating-pt consistency
. [1 |, z! q0 X% `8 w' r/O2 最大化速度 maximize speed 5 H4 ~" O! ~: w- e8 V0 _0 }$ m, ?
/Os 优选代码空间 favor code space
. g6 d' D0 Q u8 H$ F) S5 a; {/Oa 假设没有别名 assume no aliasing
6 t7 ?5 o+ J7 y' t7 {/Ot 优选代码速度 favor code speed
0 ]; K. ^" i* D0 m- t; K& t& C, Y" c/Ob 内联展开(默认 n=0) inline expansion (default n=0)
( z# C; r% M T* y, w/Ow 假设交叉函数别名 assume cross-function aliasing $ l7 T5 L. C+ l1 z5 a- L
/Od 禁用优化(默认值) disable optimizations (default) # V0 U8 m( P) X
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) 4 a7 y9 ]/ c. H7 O+ M
/Og 启用全局优化 enable global optimization ! e1 j) ]+ X: S
/Oy[-] 启用框架指针省略 enable frame pointer omission
+ c9 s: R, e2 e5 E1 Q2 {+ K6 |+ {/Oi 启用内建函数 enable intrinsic functions
& @' w3 b. s) ~( s* E- C9 c d6 V$ n1 q Z( R/ k& x/ d
-代码生成-
, z& @; G+ O8 X. P- `/G3 为 80386 进行优化 optimize for 80386 1 _5 e; A) |1 Q+ X
/G4 为 80486 进行优化 optimize for 80486
8 i- X0 K9 b. w% |/GR[-] 启用 C++ RTTI enable C++ RTTI
: ^; U, V$ U0 H/G5 为 Pentium 进行优化 optimize for Pentium 8 ~0 S9 Y) ^1 }! U. T: c- ~
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro 9 H/ c) |* j2 @- L8 b% B
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) ) G, a+ }5 ], H# }+ N8 G+ j3 O: `
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH 9 n0 T% z5 R% X# `" h
/GD 为 Windows DLL 进行优化 optimize for Windows DLL : h; S2 }( S0 y: x$ g4 E _( h
/GB 为混合模型进行优化(默认) optimize for blended model (default)
& n5 y- E& g- ?& S4 Y6 F6 i+ m6 M/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
9 e, o9 b w% s7 B/Gd __cdecl 调用约定 __cdecl calling convention % u* g3 _9 D0 k1 F
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
5 z2 ^# D8 l5 h% l/Gr __fastcall 调用约定 __fastcall calling convention + e* W3 A! I5 U, I. E
/Gi[-] 启用增量编译 enable incremental compilation * l8 d3 p( g, ?, f8 i6 F
/Gz __stdcall 调用约定 __stdcall calling convention
. W2 T6 r( l/ R/Gm[-] 启用最小重新生成 enable minimal rebuild / q5 R" o: {2 m3 H4 W. G9 M" ?
/GA 为 Windows 应用程序进行优化 optimize for Windows Application
* P P+ E/ S: @/Gf 启用字符串池 enable string pooling ' e7 P5 \+ G3 ^& ?; D5 H, q
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix 8 L2 i$ B, [2 P" T
/GF 启用只读字符串池 enable read-only string pooling
. ~+ }( g- l \, o' {3 O, U/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix 3 n, U; M6 y+ |8 e# q8 Q
/Gy 分隔链接器函数 separate functions for linker
) ~5 t2 ] M8 m0 j, [; K: x/GZ 启用运行时调试检查 enable runtime debug checks % a" o6 e |9 M2 B5 Z, X* v; @& E- t
/Gh 启用钩子函数调用 enable hook function call 7 |& ^$ F8 [2 A+ q! @( P1 }5 g
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs " B7 X. \! t9 F' m
/Gs[num] 禁用堆栈检查调用 disable stack checking calls
6 }* D# K1 f, [6 H; M: u2 j# g
% ]* r# Q4 ?, M( _-输出文件- # J: P( b* h# N! }7 y' k& d) D
/Fa[file] 命名程序集列表文件 name assembly listing file
5 p5 @" G- j, ?2 x2 K4 U/Fo 命名对象文件 name object file
' W& [( F2 \& c" K" s% _" D0 @3 L/FA[sc] 配置程序集列表 configure assembly listing 9 k' j8 _& S" ~2 Z% I8 ~
/Fp 命名预编译头文件 name precompiled header file
" c. a8 _0 r1 P2 V6 v- Y: M/Fd[file] 命名 .PDB 文件 name .PDB file
& \' e, E0 {* x$ W$ |) g# I8 U/Fr[file] 命名源浏览器文件 name source browser file
# j2 {3 g, x+ |# E6 G; S8 R/ W* r/Fe 命名可执行文件 name executable file ) r+ k4 o; m( L. u
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file 1 u M5 C3 L/ E5 N1 ]9 ^( R
/Fm[file] 命名映射文件 name map file
4 z+ b9 |0 `7 w4 s ?$ z# S& a3 G3 v
-预处理器- + A4 X f( ~- r$ ^ h: C! r# E
/FI 命名强制包含文件 name forced include file 6 y3 M0 O' i4 t, g
/C 不吸取注释 don't strip comments ( V5 `- B5 I* T! u3 {( H) w: f
/U 移除预定义宏 remove predefined macro ) J( T7 v, W- ^# F
/D{=|#} 定义宏 define macro
a% e3 d/ f) |: z1 r$ ?) O& }/u 移除所有预定义宏 remove all predefined macros
' {0 J7 m a) o8 _/E 将预处理定向到标准输出 preprocess to stdout
. i2 ]' H' \0 h+ O/I 添加到包含文件的搜索路径 add to include search path 9 u: m: J' s" m j. ?
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line 4 w( Q2 Z! h: w; s- O$ R
/X 忽略“标准位置” ignore "standard places" : O6 Q+ `$ p2 j% }0 f; z
/P 预处理到文件 preprocess to file
& \" l+ h, u& h4 y/ H; t# L5 @
/ U, l7 R% G/ ~. }7 ?( ^-语言-
7 z+ c+ T6 e/ V8 A/Zi 启用调试信息 enable debugging information ) b0 X$ p. [8 ~ N4 g* T* c5 P! ]7 d
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 5 |! w& b: o$ a e" W) Y7 t1 Y
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
- l3 W3 S0 F8 F/ z: y" H0 V/Zg 生成函数原型 generate function prototypes
3 U* A( N2 R- J; Q4 N+ h5 T# A2 v/Z7 启用旧式调试信息 enable old-style debug info
3 L. X _! `' ?5 P% N, z1 |( q/Zs 只进行语法检查 syntax check only 7 q6 p! p8 [" f" E2 ]2 M+ M7 z
/Zd 仅要行号调试信息 line number debugging info only 0 i$ v, t% n1 p- q8 b B
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
4 {6 O t( `9 b9 M! t$ p9 s& S/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary 9 }0 R' s3 m7 H7 a
/vm 指向成员的指针类型 type of pointers to members " p, c4 H/ {3 G: o
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
9 w5 o2 ~! n0 A6 c: }: f/noBool 禁用“bool”关键字 disable "bool" keyword 6 W0 @8 ]) K! k4 i, F, V
/Ze 启用扩展(默认) enable extensions (default)
% Z7 W5 |0 I/ W; q n- X# Z6 X% T* A$ B! U! n$ t
- 杂项 - ; _8 t8 s# ?7 l4 M
/?, /help 打印此帮助消息 print this help message + a& Z- J3 Z; _3 ?9 r
/c 只编译,不链接 compile only, no link
$ a2 K. j( |; r# {- M1 P" G% V/W 设置警告等级(默认 n=1) set warning level (default n=1)
7 Y+ G/ L f! |/ ~$ w/H 最大化外部名称长度 max external name length
' C1 O* ~( F- {- @6 Y/J 默认 char 类型是 unsigned default char type is unsigned . X( C- x4 _ o: j1 e' z" C
/nologo 取消显示版权消息 suppress copyright message 7 C* y& O! [0 t. i+ X
/WX 将警告视为错误 treat warnings as errors
# }* Q; B/ d8 x$ K& i4 | Z/Tc 将文件编译为 .c compile file as .c
% m) \1 r+ X2 D6 B- y* j/Yc[file] 创建 .PCH 文件 create .PCH file
$ x! }- H/ j4 f0 U/Tp 将文件编译为 .cpp compile file as .cpp
8 n, D% ~6 p! i) V/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ ( g+ K, z/ j9 `3 {
/TC 将所有文件编译为 .c compile all files as .c
$ w/ H4 Q# l e: @, p/TP 将所有文件编译为 .cpp compile all files as .cpp
7 y a" f* q, e0 K$ `' U( W& F/Yu[file] 使用 .PCH 文件 use .PCH file
6 t/ n, Z+ R3 Y/V 设置版本字符串 set version string
# H6 A$ ]& t' ], c/YX[file] 自动的 .PCH 文件 automatic .PCH
9 h% x D( s8 }) M9 G) m; ?/w 禁用所有警告 disable all warnings
' e9 X8 B/ |% o! k! f! E. P' q. O/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
4 }6 Z/ F! L( \) p' R
; P8 w8 a; T7 T-链接- ; {) {: J" }: Z
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB 8 @+ v# `- d h- ~
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib
C o& i1 z! k. `/ML 与 LIBC.LIB 链接 link with LIBC.LIB
: F3 E) R( ^: k/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib & \3 D7 u) B! M
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
. y9 L. k2 D6 G3 @7 c# ]; _% ]/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
1 x" Z; z {$ h8 d1 X/LD 创建 .DLL Create .DLL , Z f. u r: i+ k# _
/F 设置堆栈大小 set stack size
+ N- U( O c; j/ o7 y8 Z9 o/LDd 创建 .DLL 调试库 Create .DLL debug libary ) j1 x1 R2 e7 M. K9 l
/link [链接器选项和库] [linker options and libraries] |
|