|
|
-优化-" d* v( z* V. Z- P
/O1 最小化空间 minimize space : M- O. c1 } p; s: a, H
/Op[-] 改善浮点数一致性 improve floating-pt consistency
4 A6 r8 H, x6 _ D$ @/O2 最大化速度 maximize speed
6 g1 O3 `) O$ q0 ]/Os 优选代码空间 favor code space
$ x" k/ y; x/ W! d4 n5 g4 g/Oa 假设没有别名 assume no aliasing
3 b/ A6 D* x0 w& C7 s/ Q# w! a/Ot 优选代码速度 favor code speed % w/ T! u) I/ c8 P' n: o) y8 D/ v
/Ob 内联展开(默认 n=0) inline expansion (default n=0)
& P A" N. @# i0 ^/Ow 假设交叉函数别名 assume cross-function aliasing
3 z2 q. o3 Y% V, R& `" U/Od 禁用优化(默认值) disable optimizations (default) . {" x0 g. ]; x" ]: f1 }4 Z- F
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) 1 F% S6 [- p! M* ?# F+ M
/Og 启用全局优化 enable global optimization
7 j8 J1 _" y) y% @+ d% s# z/Oy[-] 启用框架指针省略 enable frame pointer omission
/ J4 m# M0 x" y8 } D# \/Oi 启用内建函数 enable intrinsic functions
0 O# c( _- P" G
1 a0 b0 q! `$ e3 h& J/ S, M-代码生成- " }! W4 ^0 {. I
/G3 为 80386 进行优化 optimize for 80386
* g3 u8 z) p1 D, \# l u/G4 为 80486 进行优化 optimize for 80486
, r1 I7 O1 e/ t1 d/GR[-] 启用 C++ RTTI enable C++ RTTI
# o2 _1 u' b- d/G5 为 Pentium 进行优化 optimize for Pentium
" T( l% ~# H/ M' d8 N/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro / ?! b, J4 N8 ], F7 q
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) # |$ {( J Y N, n2 H; Z: H
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH 9 e) S2 B, k, G) \/ ]
/GD 为 Windows DLL 进行优化 optimize for Windows DLL 8 E" d: d F& w; O7 D: R9 f" H
/GB 为混合模型进行优化(默认) optimize for blended model (default)
& p3 x6 {4 P' F% E6 R9 v' Z" U/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH 0 m. s; O% Z9 o! P4 B8 h( x
/Gd __cdecl 调用约定 __cdecl calling convention
5 {. E& s2 W3 L0 W. J/ J" y. ~/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
: R- s' z" G. }8 y6 l& \$ Q/Gr __fastcall 调用约定 __fastcall calling convention
& N2 t( [2 Y6 a% U/Gi[-] 启用增量编译 enable incremental compilation * y6 K) r% R) \
/Gz __stdcall 调用约定 __stdcall calling convention
, d7 h1 Q. q0 ?- L/Gm[-] 启用最小重新生成 enable minimal rebuild
1 s, ^: I# b9 o, \, o- m' t1 k/GA 为 Windows 应用程序进行优化 optimize for Windows Application
( p6 u) M! ~4 }$ S/Gf 启用字符串池 enable string pooling
K9 u& `7 [$ \/ M/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix ; R7 _. z& L( e% a+ @7 @& F# U
/GF 启用只读字符串池 enable read-only string pooling ' L5 s' c u8 O+ A- j
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix , _( K5 t* e/ r, x% f5 d4 p
/Gy 分隔链接器函数 separate functions for linker
, }+ g5 \+ I+ I/GZ 启用运行时调试检查 enable runtime debug checks
/ T/ n- c0 m0 d/Gh 启用钩子函数调用 enable hook function call 1 |# @- {: H* j2 f( U, `
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
) N* v- ^8 D, j$ Z3 I/Gs[num] 禁用堆栈检查调用 disable stack checking calls $ u! x1 F8 y0 z# V( B1 L! X' f1 `% z7 u
+ V; x" j) ?8 n$ X
-输出文件-
; h* A- n+ I- x/ p8 s0 e" |/Fa[file] 命名程序集列表文件 name assembly listing file 8 Y3 Y k+ J/ O; b. W- ^. u! P
/Fo 命名对象文件 name object file
0 n* v* D/ r5 \4 f! @- H/FA[sc] 配置程序集列表 configure assembly listing
' V% q) e; i2 k7 H" C1 H# K7 {/Fp 命名预编译头文件 name precompiled header file
- H/ ^: V) R6 j, b% }, C' t* h6 S0 w/Fd[file] 命名 .PDB 文件 name .PDB file : A1 b& ]2 {7 I
/Fr[file] 命名源浏览器文件 name source browser file 4 n0 v" ^7 V9 ^' n' c0 W3 R
/Fe 命名可执行文件 name executable file
7 A. p8 N' j' _3 c* G* _, ^/FR[file] 命名扩展 .SBR 文件 name extended .SBR file # j1 z2 t" j- \# C
/Fm[file] 命名映射文件 name map file
) b# [, ?# ]! m& k- g8 o* i3 A) e, m. V9 t0 D9 F
-预处理器-
% o: R! R# Y5 C$ `+ t" c5 |/FI 命名强制包含文件 name forced include file 9 [/ S- l% `! W1 x( c: D
/C 不吸取注释 don't strip comments
+ \4 a# [1 p. b) y" [% j) N9 S/U 移除预定义宏 remove predefined macro % O; Y1 _2 N! t- r8 h5 Z* s
/D{=|#} 定义宏 define macro
K. A5 q! p j& j. w4 \/u 移除所有预定义宏 remove all predefined macros ( v+ ]! [9 |3 ~, N) j
/E 将预处理定向到标准输出 preprocess to stdout
) U, g! A/ r( r: w/ V/I 添加到包含文件的搜索路径 add to include search path
i) |0 i/ @8 Z1 M9 D, Y' |/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
A* z% L5 k% y/X 忽略“标准位置” ignore "standard places" 3 d2 t, j3 Q {7 ]7 C k& h7 H5 A
/P 预处理到文件 preprocess to file 8 o! B0 p& u/ w& h; W; s
" z w' P$ Q1 a1 |; G: U: \( {
-语言-
8 {5 \4 m6 b, \! d: @) O& V/Zi 启用调试信息 enable debugging information
; v( _# w" g4 W3 n- V8 ]/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ + ?7 p1 g! ^+ ]6 R
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info ! G$ I6 ]0 R) f# Z- v3 m2 `! b+ D% N
/Zg 生成函数原型 generate function prototypes 4 Y2 M7 b4 k- E' M
/Z7 启用旧式调试信息 enable old-style debug info
N$ b6 }5 p- K. C. B" f, @: m% k/Zs 只进行语法检查 syntax check only % q( \4 n% f/ X* P
/Zd 仅要行号调试信息 line number debugging info only 9 v' d4 m$ g) u3 s( C
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
0 U+ q5 i) |/ }( g3 b$ z5 P5 x/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary
% Y# M# P! [( a6 B/vm 指向成员的指针类型 type of pointers to members - P3 n8 g; `; y/ K w5 Y
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) ! z6 {, a% h/ ~) ~; Q5 e! H
/noBool 禁用“bool”关键字 disable "bool" keyword
4 O% |7 ` @) A* ^* ]3 {; c/Ze 启用扩展(默认) enable extensions (default) 4 O& x- @" D" o1 s: l
4 v1 x4 H1 w. m0 ?
- 杂项 -
* @2 M+ r2 ~9 x! ]7 q) n+ O% i/?, /help 打印此帮助消息 print this help message # h) l* _+ {' g8 }7 N1 K
/c 只编译,不链接 compile only, no link
5 V& O2 N7 c! _+ K2 ?/W 设置警告等级(默认 n=1) set warning level (default n=1)
6 L" V( a: A) F8 S a7 E/H 最大化外部名称长度 max external name length
9 C4 s# v6 X/ {: {. _- R+ a5 M6 N( ?/J 默认 char 类型是 unsigned default char type is unsigned , H+ G2 Q, [- E+ m
/nologo 取消显示版权消息 suppress copyright message
! d: ~. B1 |# j/ m" n, v8 c9 D/WX 将警告视为错误 treat warnings as errors
8 j0 n( K9 S- V7 h3 C; L4 b( Y4 W+ b/Tc 将文件编译为 .c compile file as .c
1 i) F, M/ a) _; r0 _6 g- D3 V9 ?/Yc[file] 创建 .PCH 文件 create .PCH file
7 x; n3 W$ W9 p# `% Z" l8 ]/Tp 将文件编译为 .cpp compile file as .cpp & @# J0 {7 @& u- e* ~. z
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ Y" i8 a' C: M5 J
/TC 将所有文件编译为 .c compile all files as .c
! n! Y; w( P3 A8 ~% {* [9 h/TP 将所有文件编译为 .cpp compile all files as .cpp / _1 g$ o' U, K3 L
/Yu[file] 使用 .PCH 文件 use .PCH file
6 f( W( @& x% e7 |7 Y( b/ l/V 设置版本字符串 set version string 5 q( q3 `" B6 A! f; [* J% R" X
/YX[file] 自动的 .PCH 文件 automatic .PCH
7 M" r4 o3 N; ?: W/w 禁用所有警告 disable all warnings * T: r* a, Q! t& B
/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
9 a7 r0 ^9 j+ ?3 f
0 R @# S: ]# y4 G6 W-链接-
4 B" y( w) f* s2 S6 s7 R1 U/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB ' P y1 G$ w$ H
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib j/ n: K9 `6 j) x; C
/ML 与 LIBC.LIB 链接 link with LIBC.LIB + s2 A1 O9 S3 B R
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib 1 e! N- K) g8 `- l2 m' G2 B! _
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB h) q0 b* U# H* {: ?* E x( H
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
' h; m( q9 L1 @$ N' N+ Z/LD 创建 .DLL Create .DLL
0 S+ T# R5 a+ C/F 设置堆栈大小 set stack size
2 M8 F j! Y' d! P# s8 u/LDd 创建 .DLL 调试库 Create .DLL debug libary : E$ V# t+ j; i0 y2 T% c
/link [链接器选项和库] [linker options and libraries] |
|