|
|
-优化-
" ^/ a' ~, Y5 P" o- O" \. }/O1 最小化空间 minimize space
( F/ f+ ^$ g5 L& U. B/Op[-] 改善浮点数一致性 improve floating-pt consistency
$ u2 V" {3 L* D% h- X, {! ^/O2 最大化速度 maximize speed p2 u% M3 C9 y4 P
/Os 优选代码空间 favor code space % D7 W; ~& ~7 h, x
/Oa 假设没有别名 assume no aliasing 4 o2 {2 N$ m2 O3 g' y
/Ot 优选代码速度 favor code speed
! R- N" t$ J2 \& m) j, x8 w/Ob 内联展开(默认 n=0) inline expansion (default n=0)
6 E* O4 F. g9 C- [! L: R/Ow 假设交叉函数别名 assume cross-function aliasing ( i; d N4 R% {9 P. [$ ^5 m
/Od 禁用优化(默认值) disable optimizations (default) ; V* p" a1 X! y) b0 b, x
/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) , z5 Q4 I4 B7 W e
/Og 启用全局优化 enable global optimization
# c+ C7 O' g- t4 R9 \/Oy[-] 启用框架指针省略 enable frame pointer omission 1 i5 [$ k1 g: R3 x
/Oi 启用内建函数 enable intrinsic functions 2 d5 |/ b; J- T( V# I) Z
0 ~8 m+ x! M, O+ t9 N _. s-代码生成-
! J( W, A) N# z8 J+ {. g |# O- r# C/G3 为 80386 进行优化 optimize for 80386
7 R, x' c; M q) U+ F/G4 为 80486 进行优化 optimize for 80486
3 {. N: v- `+ M8 o# s2 O/GR[-] 启用 C++ RTTI enable C++ RTTI 5 U7 [$ A; ^3 C+ O3 |- z# u
/G5 为 Pentium 进行优化 optimize for Pentium . r e% v* N# i. C+ b
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro
3 a9 z: D9 o1 |/ k# o% L/ w6 M/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
1 u5 G7 @9 q8 ]; T5 I/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH 1 u7 ?+ C" P. F+ R3 \9 y$ p& a
/GD 为 Windows DLL 进行优化 optimize for Windows DLL
8 `4 G5 [3 K8 C3 ]) V) g; n/GB 为混合模型进行优化(默认) optimize for blended model (default)
2 d x+ ]* m5 W1 e7 O/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH 5 ~5 I+ X* h; w% h8 N+ @4 g5 _ a
/Gd __cdecl 调用约定 __cdecl calling convention ; `! `3 t1 g* @- x$ |: e" S/ k
/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
& t$ z( Z+ q5 }# p8 x' L$ f/Gr __fastcall 调用约定 __fastcall calling convention 9 m9 Q3 l, D) S. r* U& T8 T
/Gi[-] 启用增量编译 enable incremental compilation + z8 Z2 n+ A7 V2 F) q- w
/Gz __stdcall 调用约定 __stdcall calling convention : @2 _4 A2 k3 C- }7 k. a: @
/Gm[-] 启用最小重新生成 enable minimal rebuild 1 ]- _/ Q d% V' n5 A( a
/GA 为 Windows 应用程序进行优化 optimize for Windows Application ( p# m5 C4 y- D- ~
/Gf 启用字符串池 enable string pooling ; x5 C* v! m% {# C, k
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix ; R9 }1 a) o) n
/GF 启用只读字符串池 enable read-only string pooling
: o3 C' P5 h0 E" \9 |# t/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix $ X* v: @/ N' s8 K- q7 m
/Gy 分隔链接器函数 separate functions for linker
1 L9 s( R/ M. m+ E" |$ e/GZ 启用运行时调试检查 enable runtime debug checks
5 i* }6 U( X- j/ @0 ^5 g+ W/Gh 启用钩子函数调用 enable hook function call 0 U. V" a4 b4 z
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs
; L; W$ _. k1 j/ T4 r2 I/Gs[num] 禁用堆栈检查调用 disable stack checking calls
. A) ^# U8 @0 F( o I( b5 {2 h
9 A1 B/ H# S8 w6 g-输出文件- : W; K$ S! p# O5 f: _: |
/Fa[file] 命名程序集列表文件 name assembly listing file
/ l% L; \+ c6 m* ?8 K/Fo 命名对象文件 name object file - z1 z( p4 M& J; T8 N- A2 W
/FA[sc] 配置程序集列表 configure assembly listing ( J; b4 x- e3 D) a% L. `$ x0 Q; q) j- x
/Fp 命名预编译头文件 name precompiled header file % B$ L4 ]) N+ b: P9 C
/Fd[file] 命名 .PDB 文件 name .PDB file 7 {. p6 c# C. Q" J& f5 V3 ]! ^$ ^
/Fr[file] 命名源浏览器文件 name source browser file 8 i U% \, }2 `
/Fe 命名可执行文件 name executable file
! A0 ~; [& j- I; k' i( a! N/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
9 J8 `9 i1 [7 v3 n1 `2 F8 ~3 a) |/Fm[file] 命名映射文件 name map file 1 d* s( z" b3 c% D1 R1 Y) O. y8 X
' d5 x- d4 N& d( P( l
-预处理器-
0 K! f2 R9 e# [" U- R9 t% E/FI 命名强制包含文件 name forced include file
3 Z1 t4 }$ t+ m$ L# ?5 ?3 z* C/C 不吸取注释 don't strip comments
& Z' P. g+ a) c4 w' |. k/U 移除预定义宏 remove predefined macro 8 I& c. s5 a7 \' ~+ C0 O
/D{=|#} 定义宏 define macro
& d& L& R9 p/ U( \; ]/u 移除所有预定义宏 remove all predefined macros
0 w' W d$ c% u9 t T- _, F9 W/E 将预处理定向到标准输出 preprocess to stdout " N3 E7 n2 N! k, d) J. U
/I 添加到包含文件的搜索路径 add to include search path 0 b( F8 `' a2 _$ }: {% Q: ?
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
, }5 H; G8 q! b! O/X 忽略“标准位置” ignore "standard places"
7 i' I( g6 f" v7 [1 n2 l) p2 x/P 预处理到文件 preprocess to file
& a5 F% X0 a1 {; C2 [
0 @' ^$ f; c% D$ Y-语言-
1 Z! C: z8 K* f% C5 `' k2 ^/Zi 启用调试信息 enable debugging information
( s5 L& S6 t, t3 m7 d T, X/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 5 t9 z1 p+ {4 K7 O0 J; P- f" l6 n
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info
4 ?7 T1 E0 n9 \( V6 x/Zg 生成函数原型 generate function prototypes
4 U, D7 t! O0 |/Z7 启用旧式调试信息 enable old-style debug info
2 y: a% Y7 _2 p1 o( v/Zs 只进行语法检查 syntax check only $ C$ t- }6 Q s6 e& p2 R
/Zd 仅要行号调试信息 line number debugging info only `! _% ]2 k$ ~1 j1 v
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp
3 m0 h+ `! U7 ^# z2 S2 U `/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary
4 j4 O, }9 Y9 g7 k/vm 指向成员的指针类型 type of pointers to members 5 g) n. z* b0 P' F; \9 V, A
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op)
+ j7 l/ A4 b( D7 l7 ]/noBool 禁用“bool”关键字 disable "bool" keyword 4 W- [" t" m% d0 r; F5 T
/Ze 启用扩展(默认) enable extensions (default)
, s X) Y9 |& ]! b6 A1 o" T, e) I5 X! n5 R$ |/ B
- 杂项 -
2 Q7 x1 y5 S J- {. c( R/?, /help 打印此帮助消息 print this help message ) w3 K! W5 U: W( |8 T1 L3 `
/c 只编译,不链接 compile only, no link * T) p; L2 |1 O) `3 H; p
/W 设置警告等级(默认 n=1) set warning level (default n=1) # u5 L5 q; O9 b6 }! E
/H 最大化外部名称长度 max external name length & A* ]+ ^) v" d8 {; a. b9 c% H1 Z3 [' b
/J 默认 char 类型是 unsigned default char type is unsigned : E) ~; W+ J& a6 Z F4 v+ I
/nologo 取消显示版权消息 suppress copyright message , c: O2 Z8 t S. u2 I5 ]' q; U; R
/WX 将警告视为错误 treat warnings as errors
+ y. P6 m. x1 w/Tc 将文件编译为 .c compile file as .c
$ ^7 S' \# B0 |% i6 \% r/Yc[file] 创建 .PCH 文件 create .PCH file
2 U* t# s) }. K# C; {, D/Tp 将文件编译为 .cpp compile file as .cpp 9 L# O ]( W8 ]% j' O
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
b3 H" f, B' X. e/TC 将所有文件编译为 .c compile all files as .c
; l' h7 l' c! U/TP 将所有文件编译为 .cpp compile all files as .cpp ' i) ?; k8 L7 j4 i1 f1 a
/Yu[file] 使用 .PCH 文件 use .PCH file
9 x9 j% k# |7 r% V% m* _7 `/V 设置版本字符串 set version string $ x! x; [' R$ D/ e$ J1 b8 a
/YX[file] 自动的 .PCH 文件 automatic .PCH " i h% ?5 ^( A/ A) x
/w 禁用所有警告 disable all warnings
. V6 ~+ V. A+ L8 ] M/Zm 最大内存分配(默认为 %) max memory alloc (% of default) & [5 B. D' f3 G* D0 t7 j5 J
. M( _! T5 u9 n; s-链接- 7 p: m& q7 x# e5 }) I: N
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB % u( T" R; v) d& K/ o$ b' t
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib ( n: Q& a% r6 Y
/ML 与 LIBC.LIB 链接 link with LIBC.LIB
5 X: i a8 `" D2 L/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
+ g& z6 L% S" n0 d! w0 z' ]/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB 8 U0 M. A7 G9 {9 |1 W7 d( i
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib $ f6 l8 Z9 p: ^
/LD 创建 .DLL Create .DLL * c/ @7 Q& P9 t* F( i' f7 w7 a
/F 设置堆栈大小 set stack size
9 }6 N$ M; Y8 q( _/ I7 Q/LDd 创建 .DLL 调试库 Create .DLL debug libary ' c) X0 v# q3 m, \$ I& Q
/link [链接器选项和库] [linker options and libraries] |
|