|
|
-优化-
, A5 I+ S* {6 w2 i9 F: }9 p) _" v' a/O1 最小化空间 minimize space
- |" Z! A& E% O/Op[-] 改善浮点数一致性 improve floating-pt consistency
0 g/ c; O( c, S7 |9 y/O2 最大化速度 maximize speed 5 |9 v% Y% a# W# e! V! k- G0 f) V8 j
/Os 优选代码空间 favor code space
% v& E0 v2 p8 S$ g( L% r/Oa 假设没有别名 assume no aliasing 7 A- ]6 u# r) y& p' L( @) {
/Ot 优选代码速度 favor code speed
5 a0 O& ^- _+ C+ l$ n: z$ E0 f/Ob 内联展开(默认 n=0) inline expansion (default n=0) 1 x1 a" y! a6 B& y' B5 J% P3 V
/Ow 假设交叉函数别名 assume cross-function aliasing # }7 \! {0 H* ]" |
/Od 禁用优化(默认值) disable optimizations (default) 8 j' B" [, N X! l6 T* X3 [+ k
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) . b/ V, x* `6 f5 X! u9 }
/Og 启用全局优化 enable global optimization
5 j. J2 |4 O; b' U0 Z. u/ b0 r/Oy[-] 启用框架指针省略 enable frame pointer omission
2 J$ C" d* f, H, i/Oi 启用内建函数 enable intrinsic functions
! G" N2 q. Q% G4 a/ }( M D& D2 x& a. H5 D
-代码生成- ! C4 w& Y6 p# X: b
/G3 为 80386 进行优化 optimize for 80386
: E0 T0 n5 Y: ]* X/G4 为 80486 进行优化 optimize for 80486 9 J/ w! a; v- F# Y+ b" B9 _& o
/GR[-] 启用 C++ RTTI enable C++ RTTI 1 o1 ^. _% Y, T* ^0 i% t ^
/G5 为 Pentium 进行优化 optimize for Pentium
! F0 L4 J3 X7 b/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro 9 P; P3 H1 L1 N/ ?1 }5 f& {
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
9 ]2 f: R7 w1 w) I, }; h4 d8 ^/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH 5 _; ]' O% X2 c r8 u8 X
/GD 为 Windows DLL 进行优化 optimize for Windows DLL ; M1 L* |. `- I' [+ U
/GB 为混合模型进行优化(默认) optimize for blended model (default)
3 K- Q; R# ~3 O* A7 h+ b6 E( A/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH 5 Q. }% A. {# ?: B% V3 m5 D+ C
/Gd __cdecl 调用约定 __cdecl calling convention % a' B- o% J7 R6 ?, F; k
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
& @$ g+ O2 I% [$ z/Gr __fastcall 调用约定 __fastcall calling convention 7 \. _3 N% u$ }
/Gi[-] 启用增量编译 enable incremental compilation
9 I" T3 I( J8 b! Z/Gz __stdcall 调用约定 __stdcall calling convention 8 e4 D/ x1 x+ G4 w* Q4 [% y8 z
/Gm[-] 启用最小重新生成 enable minimal rebuild / ?* h/ ^: c! M" U4 G" O
/GA 为 Windows 应用程序进行优化 optimize for Windows Application
: v" y3 { K4 c1 }2 K Z/Gf 启用字符串池 enable string pooling
7 g0 M$ R1 u/ x/ L/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix
* F' ]& y" r% O- W; k/GF 启用只读字符串池 enable read-only string pooling + l9 V' l2 W) q' a9 j
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix + v% L% ]# {% @8 X4 H/ c+ Q
/Gy 分隔链接器函数 separate functions for linker 0 M6 A9 c& p$ _, b- ? q
/GZ 启用运行时调试检查 enable runtime debug checks 7 _4 p! C0 K4 D8 K/ z3 F. k. o8 B. G! N
/Gh 启用钩子函数调用 enable hook function call
# y& ?9 t4 a- R' t X {8 v x2 n; W/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
9 U' f7 F5 q) o) A$ T. V! e/Gs[num] 禁用堆栈检查调用 disable stack checking calls
% W! }9 e# x2 @5 b5 H( m0 Y5 G
" k" ?! x+ L+ {3 `9 N; t h-输出文件- 0 N, O. s$ ?3 o8 m
/Fa[file] 命名程序集列表文件 name assembly listing file ! N9 k' ?& s! O( J/ x% y
/Fo 命名对象文件 name object file + [1 K4 I s4 T' F
/FA[sc] 配置程序集列表 configure assembly listing 1 m* j- C7 i/ R1 b# Z1 m
/Fp 命名预编译头文件 name precompiled header file 3 F0 L' _4 w) @1 @9 a* ]/ P
/Fd[file] 命名 .PDB 文件 name .PDB file
/ q9 a2 p3 o( P/Fr[file] 命名源浏览器文件 name source browser file
( n; o8 V {( _; M( X& h# i/Fe 命名可执行文件 name executable file 4 H9 v: y4 b4 d5 n" h( u b# z
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file 3 I: M4 i6 ~8 j" j2 g
/Fm[file] 命名映射文件 name map file 8 D: U' C6 ]2 A. u9 V9 {$ L
4 y+ G* Y! R3 d+ y2 b. g-预处理器-
- K9 z; _% j; Z: [( V1 f7 ^$ \/FI 命名强制包含文件 name forced include file & I$ ] ?" V F h8 A8 r
/C 不吸取注释 don't strip comments
/ R7 J" }: Y. O2 A2 y, G; I+ ~/U 移除预定义宏 remove predefined macro , m1 i! n# C) j, o" R6 L
/D{=|#} 定义宏 define macro 2 A5 e4 o9 H9 j9 c+ t8 ]: ^, q* R
/u 移除所有预定义宏 remove all predefined macros / _0 E( `2 V2 I$ M
/E 将预处理定向到标准输出 preprocess to stdout
4 i/ `+ _: Y" V2 j* _/I 添加到包含文件的搜索路径 add to include search path ( z/ A% x2 p- d" w
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
! h3 k0 r- Y2 D @/X 忽略“标准位置” ignore "standard places" . U) F5 x+ X: F; v
/P 预处理到文件 preprocess to file ; c/ a0 Q& h/ f( B: u {
$ A9 d$ R7 S* Y- n* o
-语言-
/ G5 V. R. [6 \( S2 h: B/Zi 启用调试信息 enable debugging information ) M& d% L( j) U5 A: W! u
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 8 z7 x; @! }# N/ ]+ b, ~
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info 4 D' f" W! [$ \8 V! ~5 S3 e ?
/Zg 生成函数原型 generate function prototypes . O' ~: I/ V' [* E/ K
/Z7 启用旧式调试信息 enable old-style debug info
% f- K- g" [1 @! a2 {2 h/Zs 只进行语法检查 syntax check only 7 _: V& n0 l( w6 O; P' O
/Zd 仅要行号调试信息 line number debugging info only
7 u+ Z! L$ R5 F$ ~" g2 p* s/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
. T$ P7 V8 t4 M U% g0 }) M2 `/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary
* u3 e& B/ e3 q9 v3 L/vm 指向成员的指针类型 type of pointers to members
/ O$ A3 F. C0 x- V! @9 x. q/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
- b2 ]$ m- X, T) N/noBool 禁用“bool”关键字 disable "bool" keyword 8 q' M5 y) n/ W) \1 N3 ~
/Ze 启用扩展(默认) enable extensions (default) / i# R/ j$ ?4 ]7 D# t
. `8 i7 q% J0 S8 |" D- 杂项 -
2 U; L3 W" \' c; w1 X6 ?: D2 t/?, /help 打印此帮助消息 print this help message
; @; F! U8 Q7 \, f: Z# Y6 x" w/c 只编译,不链接 compile only, no link
2 R( f+ _$ d- k3 Z/W 设置警告等级(默认 n=1) set warning level (default n=1)
: f7 W+ P$ O# {3 ?8 d/H 最大化外部名称长度 max external name length
r+ Y* B ?- D* b1 g/J 默认 char 类型是 unsigned default char type is unsigned
! o, T+ N. f6 U' v. h. t# a/nologo 取消显示版权消息 suppress copyright message : h ?* Q" Y" W4 `2 ~9 D- A
/WX 将警告视为错误 treat warnings as errors
" T$ V5 k' n E O/Tc 将文件编译为 .c compile file as .c 8 }( o3 w7 t5 h$ w+ s
/Yc[file] 创建 .PCH 文件 create .PCH file ( ^ {( Y. j' l4 O! [) c
/Tp 将文件编译为 .cpp compile file as .cpp ' |8 z1 z8 d# z" ~
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
9 d/ y9 C& G* Q* Z/TC 将所有文件编译为 .c compile all files as .c 0 _2 s7 M/ X3 [2 m' [ }
/TP 将所有文件编译为 .cpp compile all files as .cpp # m {, a- r* a1 j- W3 k1 C
/Yu[file] 使用 .PCH 文件 use .PCH file
; v5 u' q4 b, a, A6 B/V 设置版本字符串 set version string
" ~4 u/ L% i. ?# t/YX[file] 自动的 .PCH 文件 automatic .PCH 6 M% E) ^3 B, U" u4 Q
/w 禁用所有警告 disable all warnings & H2 H* r+ a" Y& i
/Zm 最大内存分配(默认为 %) max memory alloc (% of default)
) h' N+ t" J" W! x0 `. V; [/ S/ @( Z: S
-链接- 3 s: m! w* D) s- _0 z7 z) }
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB
4 T0 r. [: W# Q/ g8 L/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib
/ c& F0 b( k! W* r' [* A/ML 与 LIBC.LIB 链接 link with LIBC.LIB : o2 K" n: ?* y( ]
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib Y8 }- v( e! a
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB
6 h- n0 m Q4 k/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
7 ^0 d9 ]1 U. R6 \* \/LD 创建 .DLL Create .DLL
9 p$ d1 T( K: Z% V6 O" _: J' k, _/F 设置堆栈大小 set stack size - c! @# ^. U/ I" w
/LDd 创建 .DLL 调试库 Create .DLL debug libary / L' n1 H9 C* k2 h& ?9 j5 I# z
/link [链接器选项和库] [linker options and libraries] |
|