|
-优化-
$ p4 S4 @" y$ R8 X I: V' W/O1 最小化空间 minimize space
$ R( D/ L& d1 P& ~8 H3 A+ B8 ?' r' o/Op[-] 改善浮点数一致性 improve floating-pt consistency 0 l) Q8 t. V- O
/O2 最大化速度 maximize speed
. \5 V2 Y+ v. h$ \/ v5 S' _/Os 优选代码空间 favor code space
$ c7 d7 V; g8 K2 o) @/Oa 假设没有别名 assume no aliasing , l, m8 \# P. j! n+ ]3 K
/Ot 优选代码速度 favor code speed - b# j# F' i, c4 s, V
/Ob 内联展开(默认 n=0) inline expansion (default n=0)
' y6 m" T9 _ `& p V& A' I f/Ow 假设交叉函数别名 assume cross-function aliasing 4 j9 _! Z- | d4 o" X
/Od 禁用优化(默认值) disable optimizations (default)
u$ f. F& |5 d1 Q+ G, m/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
! Y: z; M6 u- r# B: N& w/Og 启用全局优化 enable global optimization 3 v2 {% {3 |0 N9 D Z
/Oy[-] 启用框架指针省略 enable frame pointer omission
) J& n7 K5 e6 q$ O' h) _9 e/Oi 启用内建函数 enable intrinsic functions + [- y+ I4 M3 L/ ?9 s+ X
' ^- x4 C% D0 H& [, O( N: z-代码生成-
& o- e4 d6 Q7 l& o! ?5 T( e/G3 为 80386 进行优化 optimize for 80386
0 E; E. w$ ?* t0 x0 i* g/G4 为 80486 进行优化 optimize for 80486 8 _( l( ?; n3 h8 t6 H
/GR[-] 启用 C++ RTTI enable C++ RTTI ; S, e; X- {9 L6 n( \8 P& ~- J
/G5 为 Pentium 进行优化 optimize for Pentium 8 B1 B0 k0 S" X
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro , Q* j! _) v8 m; R
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc)
" v* I5 U, p! N4 b/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH
4 @8 q$ S; a b* r+ f- b5 e/GD 为 Windows DLL 进行优化 optimize for Windows DLL 1 O/ y b: W1 @1 |3 N
/GB 为混合模型进行优化(默认) optimize for blended model (default) * l/ |0 s0 ~( [# G$ L. ^
/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH
0 m, V6 n0 q$ Y5 f/Gd __cdecl 调用约定 __cdecl calling convention
4 p) ^) p* p2 d$ y6 ]% A3 x/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow + H0 n2 T& i; y9 s' v
/Gr __fastcall 调用约定 __fastcall calling convention
" n( T/ z5 Q0 M2 n0 ~* {, ~/Gi[-] 启用增量编译 enable incremental compilation
W% }0 V* w3 \ o/Gz __stdcall 调用约定 __stdcall calling convention
6 \/ `/ g+ w7 R. q! d' C/Gm[-] 启用最小重新生成 enable minimal rebuild : w( j1 D- l$ F% G% x
/GA 为 Windows 应用程序进行优化 optimize for Windows Application
. y: f1 R- _8 ^1 p! ~/Gf 启用字符串池 enable string pooling \+ g7 M) K2 `
/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix 2 g" W' w$ @1 `' R0 U
/GF 启用只读字符串池 enable read-only string pooling
1 N" Q$ K# ~) g& h0 ]+ |/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix * Y: h' x% {# u# h/ w* Y$ V+ J
/Gy 分隔链接器函数 separate functions for linker / A& V" l4 o2 \; ~2 d
/GZ 启用运行时调试检查 enable runtime debug checks
$ T9 s9 y( M' S/ E6 j4 z7 P, r/Gh 启用钩子函数调用 enable hook function call 3 i; v2 B/ g4 d$ Z: l- i
/Ge 对所有函数强制堆栈检查 force stack checking for all funcs 7 J5 N% t9 C0 O) s
/Gs[num] 禁用堆栈检查调用 disable stack checking calls
! f/ k' @3 {, N4 t9 Q, s4 v
* S5 w( \( i& e7 l-输出文件- / Q: ?' i$ j8 k4 a+ T1 F
/Fa[file] 命名程序集列表文件 name assembly listing file
. t; f1 Q, O7 t: I2 v! f5 F/ U3 g3 T3 h/Fo 命名对象文件 name object file , U1 h- J: V# G& K- w4 r
/FA[sc] 配置程序集列表 configure assembly listing
, ^5 l% O7 h4 q p/Fp 命名预编译头文件 name precompiled header file
6 G4 Z+ c4 c4 V: n/Fd[file] 命名 .PDB 文件 name .PDB file - [/ ]/ n6 ?/ ~. m+ n
/Fr[file] 命名源浏览器文件 name source browser file
3 }- s; D& b; F7 n/Fe 命名可执行文件 name executable file
& L( L5 ^* O) {3 A# K9 _; _1 r8 P/FR[file] 命名扩展 .SBR 文件 name extended .SBR file
" Y/ G4 q, ?# ~0 j/Fm[file] 命名映射文件 name map file
) [' {+ ]/ k0 g" a# F8 }
0 E. E, }2 {8 \-预处理器-
( ]7 \& S7 Y( U! R/FI 命名强制包含文件 name forced include file
& |! u/ r. d& v% S+ N/C 不吸取注释 don't strip comments
8 R `0 c- Z( ^" q9 |/ P: ]3 f/U 移除预定义宏 remove predefined macro ! M" z4 W3 O) Y8 P! G
/D{=|#} 定义宏 define macro 2 r3 o1 [1 k. U: o0 Y- |: x g2 h$ V
/u 移除所有预定义宏 remove all predefined macros
' W: t5 V4 B0 Y/E 将预处理定向到标准输出 preprocess to stdout
7 G ^2 @0 A' \" t& H; Q0 ~# [& i/I 添加到包含文件的搜索路径 add to include search path 5 t4 M ~( V( W" v3 }9 E: L. x
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line & | C ~- B6 |, s! f
/X 忽略“标准位置” ignore "standard places"
% Q; s$ D: X- g% w/P 预处理到文件 preprocess to file r5 e$ i% R& k+ x" E
5 s w* \' T( T! M8 `( O [
-语言-
* d; j! T# W& D8 s5 [* l0 _) u/ A/ S2 n/Zi 启用调试信息 enable debugging information
, l8 q1 V* s9 w* P" \, M7 \) l/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 0 p9 T0 n4 I$ `* r, @5 S" o7 X
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info $ S [! |3 u! t
/Zg 生成函数原型 generate function prototypes * r( D' e- B# u9 M
/Z7 启用旧式调试信息 enable old-style debug info
; q( t& \/ ~ U0 f: i! F/Zs 只进行语法检查 syntax check only
/ R2 _/ a9 d" @! j# O# `/Zd 仅要行号调试信息 line number debugging info only + ^# [( U+ }- D& B. ?
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp - @# `0 z; L& D8 y
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary 4 ^, r# x5 G* M: M# `9 H0 D
/vm 指向成员的指针类型 type of pointers to members
7 v6 Q* i8 g4 u. n( L. O' A# i) C/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) 6 P. G& q# L% _, Q% N. _! g
/noBool 禁用“bool”关键字 disable "bool" keyword
4 h. y5 p$ o! G! F, Q Y/Ze 启用扩展(默认) enable extensions (default)
7 J5 H0 M! L, |$ U# D6 G/ D; P5 S1 _0 y) Q: d3 P
- 杂项 -
* m. Y8 }* D. F% V- N/?, /help 打印此帮助消息 print this help message / e4 S; k$ X7 c, T
/c 只编译,不链接 compile only, no link
( c4 W: @+ v' `5 W/W 设置警告等级(默认 n=1) set warning level (default n=1)
# g2 ?6 z7 A7 o" _/H 最大化外部名称长度 max external name length : Y8 L$ S& E3 Y
/J 默认 char 类型是 unsigned default char type is unsigned
0 K) W$ U- F E# o W& X: T/nologo 取消显示版权消息 suppress copyright message / h6 n! m0 M5 ?9 n* k
/WX 将警告视为错误 treat warnings as errors
% s8 H3 X8 T% S/ o/Tc 将文件编译为 .c compile file as .c
) g# a. W2 j1 f/Yc[file] 创建 .PCH 文件 create .PCH file # a) V) O; f% d1 M3 `9 l
/Tp 将文件编译为 .cpp compile file as .cpp : e& i& q, s8 `! g$ K8 v
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ # m v5 R9 E7 Y- L
/TC 将所有文件编译为 .c compile all files as .c
. B$ N4 A8 J/ R+ E* P9 `4 v/TP 将所有文件编译为 .cpp compile all files as .cpp
1 X) o1 }" @3 i1 i/ v/Yu[file] 使用 .PCH 文件 use .PCH file
: |7 y; r- r4 x7 V/V 设置版本字符串 set version string . V: E' K* q7 s3 X, q# `# P
/YX[file] 自动的 .PCH 文件 automatic .PCH {" C4 m0 Q1 ]& P+ E
/w 禁用所有警告 disable all warnings ; c5 ?# A7 i9 L7 \: c
/Zm 最大内存分配(默认为 %) max memory alloc (% of default) " _2 Y* c' P. f
6 V/ k+ R) B$ l/ m8 e1 C6 q-链接- $ ^4 ^6 A: t% D' [
/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB $ t5 a4 p4 i5 F, e7 T+ _
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib
4 m r9 m( w6 c/ML 与 LIBC.LIB 链接 link with LIBC.LIB # b, Z: x" S; q2 F, I0 s- k
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib ; |7 C" y1 _2 F6 A$ u
/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB ( j3 h) w k# L/ b% I
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib
t: X5 h3 l4 X/LD 创建 .DLL Create .DLL
5 U) E- _- E; ]# P+ Y8 w/F 设置堆栈大小 set stack size + _4 i: J! z) T8 @* B
/LDd 创建 .DLL 调试库 Create .DLL debug libary
+ f8 c2 U- U$ q+ ]' h! o- P: A6 r/link [链接器选项和库] [linker options and libraries] |
|