|
|
-优化-
* i8 ?8 u6 @/ M# W( y% w) U/O1 最小化空间 minimize space
) L+ H. o5 @* |/Op[-] 改善浮点数一致性 improve floating-pt consistency
1 d- u, [9 ~9 U/O2 最大化速度 maximize speed & o% L0 U6 d* d5 Z) u
/Os 优选代码空间 favor code space
l& D* G; [ F, I# E/Oa 假设没有别名 assume no aliasing
0 Y6 t I- N5 p: b7 `, v9 t/Ot 优选代码速度 favor code speed
/ P( l- r8 j% O' N3 C/Ob 内联展开(默认 n=0) inline expansion (default n=0)
( H. e6 J0 p/ z7 R/Ow 假设交叉函数别名 assume cross-function aliasing
* U! G# U: P5 K/Od 禁用优化(默认值) disable optimizations (default)
- y' e, s F- A5 O5 {* W/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
: |8 K e) K5 c/Og 启用全局优化 enable global optimization
5 G0 K4 x8 d5 m& K/Oy[-] 启用框架指针省略 enable frame pointer omission
' |6 e+ y6 O) {& h/Oi 启用内建函数 enable intrinsic functions : |; a9 H, Q; L$ W5 G9 d6 S& h
" m4 J, j6 j( a# \- e( w
-代码生成-
0 q4 H- I5 R7 p/G3 为 80386 进行优化 optimize for 80386
8 Q/ @8 i1 B# I/G4 为 80486 进行优化 optimize for 80486
( N( u M' g# C$ `' ]: q8 I/GR[-] 启用 C++ RTTI enable C++ RTTI ) _; l) i' m& a8 Y+ `- N3 W. z3 B
/G5 为 Pentium 进行优化 optimize for Pentium
2 W7 S( V$ g) i/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
3 Z A- ^5 w6 s* h' ~4 G/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
/ C; h! H6 c4 A& |/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH
; H* r' G& E6 w; j/ |: }4 B/GD 为 Windows DLL 进行优化 optimize for Windows DLL
* L0 X/ P/ E0 g: u% s% l/GB 为混合模型进行优化(默认) optimize for blended model (default)
" T \& K$ P \1 x+ n' k/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
1 N5 l$ S1 A' G# W1 A5 l: k/Gd __cdecl 调用约定 __cdecl calling convention ! x: c' H! @/ Y+ l: ^& F }) ]
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow ) {. M0 V& I6 B. h I+ Q
/Gr __fastcall 调用约定 __fastcall calling convention
0 u6 Q# s8 h2 e/ `; y# g+ L& x. M/Gi[-] 启用增量编译 enable incremental compilation
& y" ^9 x3 X3 o- `7 e0 V. x9 y) s! C+ {/Gz __stdcall 调用约定 __stdcall calling convention ' s. R' [ M$ J7 [
/Gm[-] 启用最小重新生成 enable minimal rebuild % Q# F8 ]1 r" R1 m& _
/GA 为 Windows 应用程序进行优化 optimize for Windows Application 6 d8 K" i# W) _7 s% q; m' k
/Gf 启用字符串池 enable string pooling 6 O! ]+ s) U4 F( [% R2 T+ d
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix 8 G8 }1 f0 F, k4 c4 E0 L) l
/GF 启用只读字符串池 enable read-only string pooling 0 Y; Y0 w" c5 p: A/ D; V& d
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
" N% ]4 M- P9 h+ _+ N/Gy 分隔链接器函数 separate functions for linker $ h6 c7 J4 Q/ {. L4 e& |
/GZ 启用运行时调试检查 enable runtime debug checks
) a. `' v d$ v2 r* q# h/Gh 启用钩子函数调用 enable hook function call $ g& G: S/ s; C1 P( ^
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
! V5 N1 Z9 o) A9 d0 O/Gs[num] 禁用堆栈检查调用 disable stack checking calls 2 N0 e; t, q5 Y, @# n4 }: ?
' P' Q2 _' X2 X1 J7 z- w-输出文件-
8 B( R- R' j; S. C, N: Y/Fa[file] 命名程序集列表文件 name assembly listing file
" n, F" f5 s7 C& N; K/Fo 命名对象文件 name object file 6 |; D0 I( G" h
/FA[sc] 配置程序集列表 configure assembly listing ; V o- {7 m4 P6 [
/Fp 命名预编译头文件 name precompiled header file 2 g# d, T" X, x# k$ d3 n4 l4 d
/Fd[file] 命名 .PDB 文件 name .PDB file # |5 H; i8 q5 J
/Fr[file] 命名源浏览器文件 name source browser file
; {* F0 L" u# }8 D/Fe 命名可执行文件 name executable file ( I1 S1 f7 X7 |. O% B: l* g' S, F
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
$ ^/ u0 ?8 t* Y: }3 q+ B/Fm[file] 命名映射文件 name map file 4 Q W+ Q" ]5 f
2 Q0 ]- {* G, C: |6 @* j( v. m% [) @-预处理器-
9 l) r- n- y5 ~0 Z6 R/FI 命名强制包含文件 name forced include file : X! T+ B! K8 p- z
/C 不吸取注释 don't strip comments
: i' Y4 v4 Y0 P: B/ X0 f/U 移除预定义宏 remove predefined macro
# ]+ O6 a D5 w/D{=|#} 定义宏 define macro ' ^& |% ]/ M$ g/ D
/u 移除所有预定义宏 remove all predefined macros : Y; p. C% B8 f$ A3 B% {; j; {
/E 将预处理定向到标准输出 preprocess to stdout % w7 { D2 h( H1 z& K6 R) c
/I 添加到包含文件的搜索路径 add to include search path 1 R4 A- P& s$ u" m2 P1 g
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line 1 Q4 }! x! P, G3 c1 Z% [
/X 忽略“标准位置” ignore "standard places" & R$ w* y3 j& l( Q( K
/P 预处理到文件 preprocess to file ) V. m2 m3 e f6 _# S/ [3 r
; [4 W7 D$ a7 V4 H) W: y/ X' k-语言-
7 u9 ^0 c/ B4 d# p( b* A& c Y/Zi 启用调试信息 enable debugging information
7 v5 H5 @, n5 w6 K- K# Y( U8 q/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 7 o4 c# s; M8 R" r& H! O+ c1 Y
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
- h# ?" r1 r( }* d: ] \/Zg 生成函数原型 generate function prototypes
9 L5 I+ i9 z: V- f$ T% Q/Z7 启用旧式调试信息 enable old-style debug info
; Y- @) v! ? J/Zs 只进行语法检查 syntax check only
; O3 ~% Y* [& Y/ V/Zd 仅要行号调试信息 line number debugging info only : U _8 ]! ~% o5 k0 }/ O
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp ( b; r: t) `$ l) V- h. J8 {4 f/ e) I
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary ! z" X5 X# g2 F- b$ [, c. W" P
/vm 指向成员的指针类型 type of pointers to members 9 ?6 p1 h& o- a4 @5 L1 u5 H
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) ' ?2 J$ Y$ m. \( L6 g5 a. n
/noBool 禁用“bool”关键字 disable "bool" keyword ! k* f8 v0 m+ B$ w2 y6 J" r; T1 L. G
/Ze 启用扩展(默认) enable extensions (default)
* A ]# d. C6 R: C
3 y8 d( T7 L5 F, a+ m" @- 杂项 -
+ }# R5 T% o1 ?/ Z6 z1 r" z' z/?, /help 打印此帮助消息 print this help message " S2 @% G" r' O& z7 ~
/c 只编译,不链接 compile only, no link G6 h. ]/ U) o6 S& X: `5 r9 D
/W 设置警告等级(默认 n=1) set warning level (default n=1) / U6 T5 }- u; ~
/H 最大化外部名称长度 max external name length
6 o( u% E4 r6 K/J 默认 char 类型是 unsigned default char type is unsigned ) r, K. Y8 O4 \5 q T: m1 _% K* J
/nologo 取消显示版权消息 suppress copyright message
! K) S- \! h8 D5 u \! C/WX 将警告视为错误 treat warnings as errors ' [# B% c( y- i ]2 j- V
/Tc 将文件编译为 .c compile file as .c / C& @3 |& p- v7 ?
/Yc[file] 创建 .PCH 文件 create .PCH file
4 A4 h" ] _6 n& W5 Z( y' S/Tp 将文件编译为 .cpp compile file as .cpp , |3 x! o* C( m$ `* e' n/ i! {
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
' D# H# k A$ M/TC 将所有文件编译为 .c compile all files as .c 4 n! y7 u* B, T- c) J7 c
/TP 将所有文件编译为 .cpp compile all files as .cpp n+ }1 A7 Q0 f9 J' A
/Yu[file] 使用 .PCH 文件 use .PCH file ; @$ d% ]$ F0 \4 V
/V 设置版本字符串 set version string ! S7 Z* P1 }+ Q/ J& T( T
/YX[file] 自动的 .PCH 文件 automatic .PCH / j9 l. G! |( J! r
/w 禁用所有警告 disable all warnings
9 l: y! L- ?/ o r: D/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
+ o5 Q/ V, u+ i" z' Z% o1 _1 Y3 i8 m8 ~- H# [+ s
-链接- 5 W7 O/ W$ N7 ?. Z; V) v
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB ! ~: W* |5 y( L; Q) A
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib }0 n8 R* L, B/ o5 l. ? _
/ML 与 LIBC.LIB 链接 link with LIBC.LIB 0 |# K# Q: H3 ^* S/ q& O3 ~
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
; i( S8 Q# L0 B2 A: T, w/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
5 g. L. ?9 _/ `, C6 t/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
% m' ]; ?8 W G* _6 q/LD 创建 .DLL Create .DLL & [ S, ^3 I3 e/ E/ {' B# T
/F 设置堆栈大小 set stack size , I8 p- g5 q% X/ {' `! I3 d
/LDd 创建 .DLL 调试库 Create .DLL debug libary 8 z9 n# ^: ^1 q' h' S
/link [链接器选项和库] [linker options and libraries] |
|