|
|
-优化-
+ K5 l9 m T- J3 b( z8 q0 O/O1 最小化空间 minimize space + s* y- I0 i( F$ x) k
/Op[-] 改善浮点数一致性 improve floating-pt consistency : W( K( n6 s) A2 l6 L$ e3 ^
/O2 最大化速度 maximize speed
; W4 y% \ f. j# H7 M7 _6 L+ k6 H/Os 优选代码空间 favor code space 8 [9 l8 ^! |, u6 x3 j+ K
/Oa 假设没有别名 assume no aliasing
: P1 w9 ]. t: x! Y! y/Ot 优选代码速度 favor code speed " k: P6 Y# t# A$ w2 l
/Ob 内联展开(默认 n=0) inline expansion (default n=0) + q k3 p# H( C2 @
/Ow 假设交叉函数别名 assume cross-function aliasing
! f; z; ]! W& T, H. }% }) K/Od 禁用优化(默认值) disable optimizations (default) + Q# u1 s$ ]2 j7 ^# b: E
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
* |8 t7 Y6 U/ S0 E/Og 启用全局优化 enable global optimization ( B9 G* L2 A& m5 F* T
/Oy[-] 启用框架指针省略 enable frame pointer omission ) A% a' E) d, u6 ^& _( A7 v0 D
/Oi 启用内建函数 enable intrinsic functions
: L( x" ?3 ?0 \( X9 E5 R5 o; c2 e+ H0 L- d/ k
-代码生成-
; e1 |8 {% Z) V# c. G/G3 为 80386 进行优化 optimize for 80386
/ Y" h( U+ g `7 ]8 b R/G4 为 80486 进行优化 optimize for 80486 ' i7 [+ V% @0 b- a
/GR[-] 启用 C++ RTTI enable C++ RTTI
( G$ @$ i% K N v& _8 L( S/G5 为 Pentium 进行优化 optimize for Pentium
- s+ k. J4 b' t' ^' s/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro 4 e8 P2 o2 c2 y2 [7 \ B) a* `' _+ L
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) & ?4 j1 _. A% i/ S' e; U
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH 6 y) k/ @& A* V) y6 [9 k5 ~
/GD 为 Windows DLL 进行优化 optimize for Windows DLL 0 k6 Z) H, F+ E# z4 l, e
/GB 为混合模型进行优化(默认) optimize for blended model (default)
/ p9 N8 V& }* G8 e& \/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH # x4 I2 t8 b. r& o
/Gd __cdecl 调用约定 __cdecl calling convention 9 t6 }" I; p C" c: S0 G! P
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow . ~( L: z, s9 r- N& f" M' s
/Gr __fastcall 调用约定 __fastcall calling convention
6 Q& v7 ~$ B# _/Gi[-] 启用增量编译 enable incremental compilation
7 E& H4 X: P( A1 i; F) H/Gz __stdcall 调用约定 __stdcall calling convention , y+ R2 z7 B* ` u5 m; P
/Gm[-] 启用最小重新生成 enable minimal rebuild & Y8 b6 d9 Y p
/GA 为 Windows 应用程序进行优化 optimize for Windows Application
3 E+ i# m9 P% {1 y$ S/Gf 启用字符串池 enable string pooling ( o5 j& l) u3 S& i5 b+ ] \3 Z
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix 9 k% s! c) F- \- B
/GF 启用只读字符串池 enable read-only string pooling
/ b- h3 G* M; Y, M H1 _& R/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix # `9 V/ }, y9 L# T4 {! }
/Gy 分隔链接器函数 separate functions for linker
9 ^: ^/ l9 L5 [! G6 \3 f/GZ 启用运行时调试检查 enable runtime debug checks
- C. f2 d" [$ Y6 J- M/Gh 启用钩子函数调用 enable hook function call
' G1 i1 @" R! y! W2 ~9 c/Ge 对所有函数强制堆栈检查 force stack checking for all funcs 6 e$ b' S+ p; @ B+ ^$ c
/Gs[num] 禁用堆栈检查调用 disable stack checking calls
. ]0 y% Y8 A" H2 q. |
( K. C" U5 O, W* _* [0 H1 D" ]-输出文件-
+ A# Q* W/ n* O: m9 {8 @* Q/Fa[file] 命名程序集列表文件 name assembly listing file H" p. t; ^1 f3 i
/Fo 命名对象文件 name object file
8 f) ~- n: B! V( w/FA[sc] 配置程序集列表 configure assembly listing ) w6 z; M$ N" J$ P
/Fp 命名预编译头文件 name precompiled header file
! O! @9 P: ]1 l+ O: R9 w& y/Fd[file] 命名 .PDB 文件 name .PDB file ) D% R5 q7 A7 J7 r% s
/Fr[file] 命名源浏览器文件 name source browser file ) F& M, e' v3 p1 \7 {8 e: c
/Fe 命名可执行文件 name executable file * M9 r5 M' A) }0 L% X; Z
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file + i+ z0 g+ |. O+ }
/Fm[file] 命名映射文件 name map file ; l+ ~, V4 {; u3 r6 {& c9 N
, N5 u- k8 I3 l ? X) X( }+ U-预处理器- / l. N2 f5 k1 ^" H9 k" `8 a
/FI 命名强制包含文件 name forced include file
0 v" B7 r( J( C) a/C 不吸取注释 don't strip comments
7 a" q, O; ]/ R& p" ]8 E/U 移除预定义宏 remove predefined macro # N& R" R+ l/ u9 _& h
/D{=|#} 定义宏 define macro $ `- O6 v$ G( n/ C
/u 移除所有预定义宏 remove all predefined macros ' F2 G" T9 b6 z0 X7 q
/E 将预处理定向到标准输出 preprocess to stdout 7 {4 c S# z, m, M0 @2 R
/I 添加到包含文件的搜索路径 add to include search path
2 Q8 W9 g$ c1 G2 N5 y( f4 k5 S/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
# R/ B* }# P6 _1 X/X 忽略“标准位置” ignore "standard places"
7 S1 ~& v+ i/ y/P 预处理到文件 preprocess to file
/ x$ v0 A, z9 l$ _8 d. L7 Y& s) I7 D# U7 w1 ~1 U9 e
-语言-
3 c* v% z7 a" Z% A s& D7 j/ u/Zi 启用调试信息 enable debugging information
9 P c4 j: L# h$ P/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 8 h+ |* b' J0 Q v ~' S$ ?# l% `8 A
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
( m. n. g5 d1 s/ u/ k5 ^5 P/Zg 生成函数原型 generate function prototypes $ i4 l1 y- e! u3 b+ F
/Z7 启用旧式调试信息 enable old-style debug info
( Q, Y' O0 [; Z' j! m/Zs 只进行语法检查 syntax check only & R; i( ~4 P5 z5 M7 _6 s/ _
/Zd 仅要行号调试信息 line number debugging info only
/ ^. S& @# L7 [/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
# R5 M3 @+ L' S/ N3 Y/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary ; s4 @2 I4 j& b+ r6 y- ]2 Y
/vm 指向成员的指针类型 type of pointers to members & ~% m/ z+ q( k0 e
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) 4 h& R3 j# ~% P8 E
/noBool 禁用“bool”关键字 disable "bool" keyword 0 b# G1 v* ~" p
/Ze 启用扩展(默认) enable extensions (default) ! M: F0 f3 z$ r1 m7 C7 a9 X S# v1 w
" X2 A( w: P2 c5 @+ r4 t3 G, ^- 杂项 - & ]. m7 q# z# E# j2 `
/?, /help 打印此帮助消息 print this help message
: C' R. ]$ Z( b( U1 J4 ` @5 M/c 只编译,不链接 compile only, no link , D& A6 V$ j+ Y* U
/W 设置警告等级(默认 n=1) set warning level (default n=1)
& F$ A2 y* O. z5 `& i$ c, |/H 最大化外部名称长度 max external name length
8 O0 J! b& C4 \& R) C E1 U/J 默认 char 类型是 unsigned default char type is unsigned # Z8 h" B6 ?9 I5 l3 ]
/nologo 取消显示版权消息 suppress copyright message . s+ p9 n2 D. [* t+ |$ M6 Y
/WX 将警告视为错误 treat warnings as errors
0 ^: m8 |2 g- p' w; x( ^% W" g5 L/Tc 将文件编译为 .c compile file as .c
/ i1 I- k. U/ @, H5 w0 v/Yc[file] 创建 .PCH 文件 create .PCH file # E n! M! [2 u4 T, `
/Tp 将文件编译为 .cpp compile file as .cpp
& W4 T* e3 F- Z1 X2 V/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ 7 G6 J% H3 Q/ C1 a' B0 w
/TC 将所有文件编译为 .c compile all files as .c 9 N. _- `$ M m( E. j& G1 w
/TP 将所有文件编译为 .cpp compile all files as .cpp
6 q; a* D) K1 e/ w) W/Yu[file] 使用 .PCH 文件 use .PCH file
2 P5 z8 i% i1 W0 S/V 设置版本字符串 set version string
* W6 | p4 N" ~% U( G' I# m0 h/ p/YX[file] 自动的 .PCH 文件 automatic .PCH ' i" N K) \ d2 W7 x0 F+ P) D2 E5 }4 l
/w 禁用所有警告 disable all warnings
4 W3 A2 b3 r3 R) D8 l# o0 l/Zm 最大内存分配(默认为 %) max memory alloc (% of default) 8 H* v( n! H2 K/ d- s5 r" E
: i4 M, m9 C$ [6 C$ a" n1 C% _) Y4 A-链接-
* `% h) U1 u2 g3 D) D/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
% [/ G3 m) S& q7 d( w3 W# ]/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib 6 n9 U( L( n! A% ], M& H
/ML 与 LIBC.LIB 链接 link with LIBC.LIB 1 ?( @6 c ?+ B8 r# n
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib ' X, |8 C( L5 U) v
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
, x) {0 {$ a: p% i. X/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
. l$ [% T% T! h/ P9 h* X) M* k/LD 创建 .DLL Create .DLL / Y2 L+ k$ q7 y4 f2 w/ B. B
/F 设置堆栈大小 set stack size
K# {. r7 j# } C: e. P/LDd 创建 .DLL 调试库 Create .DLL debug libary
% g. u6 z, Q$ ]; H+ {+ L3 @- J/link [链接器选项和库] [linker options and libraries] |
|