|
|
-优化-
; C' B. y; w3 S" q5 Y; @/O1 最小化空间 minimize space : b6 X$ o% q9 d& h' I. P9 `7 f
/Op[-] 改善浮点数一致性 improve floating-pt consistency
/ j/ v+ L$ w( r5 K% V/O2 最大化速度 maximize speed $ L8 n# ?* o/ o- K6 g3 v
/Os 优选代码空间 favor code space 9 r, t. i2 \& [& y
/Oa 假设没有别名 assume no aliasing
6 n7 v& {/ R) w& b" y* P5 D- N/Ot 优选代码速度 favor code speed
+ Z1 v- M& x* [: Q1 E: N/Ob 内联展开(默认 n=0) inline expansion (default n=0) " t) }" O* ?( E l% V$ i9 P4 D b
/Ow 假设交叉函数别名 assume cross-function aliasing * J( j, M; [, S+ o5 l U/ [
/Od 禁用优化(默认值) disable optimizations (default)
$ e4 ^' o H* n+ D+ {! s& O/Ox 最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs)
& h2 s- D+ K& Z5 W5 i& u/Og 启用全局优化 enable global optimization
/ d. f, z' h" {$ H7 F2 O/Oy[-] 启用框架指针省略 enable frame pointer omission
4 [/ L% ~+ u. M/ o7 H# @. Y2 L* J+ f& W/Oi 启用内建函数 enable intrinsic functions
) D1 ]3 c/ | f4 t- j+ N
3 C! ]) A& q, F% `1 `-代码生成-
: `& E$ Z+ a E/G3 为 80386 进行优化 optimize for 80386 * t; Q, h& m4 v! R
/G4 为 80486 进行优化 optimize for 80486 9 @- ?# `8 n0 Q/ {2 S
/GR[-] 启用 C++ RTTI enable C++ RTTI
# a3 s' y6 v% l' F4 P/ O/G5 为 Pentium 进行优化 optimize for Pentium / H @6 ^3 f' S' n
/G6 为 Pentium Pro 进行优化 optimize for Pentium Pro / e, H; B1 n) T
/GX[-] 启用 C++ 异常处理(与 /EHsc 相同) enable C++ EH (same as /EHsc) ' A% ~7 p( H/ q( j1 j
/EHs 启用同步 C++ 异常处理 enable synchronous C++ EH
& ?, p+ E: y+ n$ I* D/GD 为 Windows DLL 进行优化 optimize for Windows DLL 3 c( b1 T5 n" Z5 ^9 X
/GB 为混合模型进行优化(默认) optimize for blended model (default)
- O1 Y# v! B7 C7 C) R, _! X/EHa 启用异步 C++ 异常处理 enable asynchronous C++ EH ! }$ d( n+ ^! i5 q; d
/Gd __cdecl 调用约定 __cdecl calling convention
& a! p- s0 o5 L. ]$ n/EHc extern“C”默认为 nothrow extern "C" defaults to nothrow
3 U G. y( o) J w" e% m/Gr __fastcall 调用约定 __fastcall calling convention
& Z+ V* t! G J( Y+ X t/Gi[-] 启用增量编译 enable incremental compilation . v4 Q& b" g6 J. y
/Gz __stdcall 调用约定 __stdcall calling convention / j5 ` M: N9 C6 v/ @
/Gm[-] 启用最小重新生成 enable minimal rebuild : v, M: t7 _, q
/GA 为 Windows 应用程序进行优化 optimize for Windows Application ' b4 l5 j) W; Y% ~7 E3 j- x
/Gf 启用字符串池 enable string pooling
) Y0 K4 N7 _8 M9 `/QIfdiv[-] 启用 Pentium FDIV 修复 enable Pentium FDIV fix - w$ n; x0 }( z- V6 n; [, b7 T
/GF 启用只读字符串池 enable read-only string pooling ! H0 F, P6 H+ h, u% T4 I! @( w
/QI0f[-] 启用 Pentium 0x0f 修复 enable Pentium 0x0f fix
~9 ` Z$ v) A: Y x/Gy 分隔链接器函数 separate functions for linker
9 G, ?) C% w, |8 R9 O/GZ 启用运行时调试检查 enable runtime debug checks 4 I9 J. ^6 q* z1 Z6 t: V( I
/Gh 启用钩子函数调用 enable hook function call
. K/ _7 n, ]- [/ E3 R: w, l$ I/Ge 对所有函数强制堆栈检查 force stack checking for all funcs 4 t$ w8 d0 N+ d1 O- e
/Gs[num] 禁用堆栈检查调用 disable stack checking calls
8 d3 Z* n. a# p; i9 K7 q7 b! L p. o* \8 L
-输出文件- + E+ l* T0 k3 j' M
/Fa[file] 命名程序集列表文件 name assembly listing file
* ~' ]; Y# P" O/Fo 命名对象文件 name object file
9 `& f* f! U! d/FA[sc] 配置程序集列表 configure assembly listing
+ D2 s6 n: C, q7 h7 p/Fp 命名预编译头文件 name precompiled header file ! m. u4 r6 A" X3 M% y* R! U
/Fd[file] 命名 .PDB 文件 name .PDB file . M$ _0 L4 X% t0 r4 Y3 E
/Fr[file] 命名源浏览器文件 name source browser file 2 z" d4 @/ _6 G
/Fe 命名可执行文件 name executable file " H; _0 k) a' r: H( P+ ^9 z* A
/FR[file] 命名扩展 .SBR 文件 name extended .SBR file 2 i! o* `; l4 `, l: E
/Fm[file] 命名映射文件 name map file
3 k: }. K" A4 X7 L5 w" V) S
5 y) E8 m+ U, u2 O3 t2 Q3 _-预处理器-
2 ~1 q$ x1 Y. ^" w& |2 P' A/FI 命名强制包含文件 name forced include file & J' t2 a. t+ t$ i
/C 不吸取注释 don't strip comments
- P1 }' E/ g2 s! F/U 移除预定义宏 remove predefined macro ' W/ I" j' c6 G; K; o; A, ^
/D{=|#} 定义宏 define macro # }1 c: K. ^. C) |6 ?
/u 移除所有预定义宏 remove all predefined macros
- j1 y: E& M6 X9 q$ L1 U/E 将预处理定向到标准输出 preprocess to stdout
! M) L6 f) {2 G/I 添加到包含文件的搜索路径 add to include search path % I8 ?, d3 P7 A; \3 p) |( {2 V
/EP 将预处理定向到标准输出,不要带行号 preprocess to stdout, no #line
- o: k" |3 y2 |1 a" ~7 [- _/X 忽略“标准位置” ignore "standard places"
, o$ y4 Q+ C' g7 a$ S/P 预处理到文件 preprocess to file
& e) S& u) n9 Y& A5 i+ D
# i! i9 o2 [9 F& u% g3 |-语言-
" A! \! E- q5 q3 b% j D/Zi 启用调试信息 enable debugging information - |% H! Y x+ _/ A! S5 I
/Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ 4 i6 a/ A8 M" n. x6 F+ \$ g
/ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info # ]6 U2 y- r$ B! n) x
/Zg 生成函数原型 generate function prototypes 8 w1 N/ f Y# S. I! W
/Z7 启用旧式调试信息 enable old-style debug info
2 i. T1 z" l C# ?: Z6 o# W/Zs 只进行语法检查 syntax check only 0 }; j( [* V5 N- B6 h' ~9 _
/Zd 仅要行号调试信息 line number debugging info only . ]4 u" g3 }) t* P$ S, @! ^
/vd{0|1} 禁用/启用 vtordisp disable/enable vtordisp ! B: _! x; E, t/ f; d4 a8 \
/Zp[n] 在 n 字节边界上包装结构 pack structs on n-byte boundary - H3 [7 b$ J- N+ W" n( b
/vm 指向成员的指针类型 type of pointers to members + D4 Z# v+ K" p& _
/Za 禁用扩展(暗指 /Op) disable extensions (implies /Op) O3 U; X' R$ n
/noBool 禁用“bool”关键字 disable "bool" keyword
3 Y) k; i( B3 U0 i9 K/Ze 启用扩展(默认) enable extensions (default)
- |& u0 Q7 N5 P9 ~: Z w7 A% D# a; \- Z4 c) Z0 f# R
- 杂项 - 2 ? s( E. Y- ]$ w1 I/ I8 k2 O
/?, /help 打印此帮助消息 print this help message 5 ]" n, y, [/ K. n/ W
/c 只编译,不链接 compile only, no link
0 f5 P: ~) y3 N0 |( q/W 设置警告等级(默认 n=1) set warning level (default n=1) 1 S9 f% A9 }& |
/H 最大化外部名称长度 max external name length k1 R* \& w' r
/J 默认 char 类型是 unsigned default char type is unsigned . Z! r# C% E1 ^
/nologo 取消显示版权消息 suppress copyright message
6 V8 G/ ^4 P; R/WX 将警告视为错误 treat warnings as errors
1 U, B; v: m1 a+ h/ f$ R/Tc 将文件编译为 .c compile file as .c ) A% P# ~9 O( A* H/ x. p& z/ A! q
/Yc[file] 创建 .PCH 文件 create .PCH file 8 H; O/ c5 v4 [0 v. Y( @9 P
/Tp 将文件编译为 .cpp compile file as .cpp 4 ^9 e% n; K! k
/Yd 将调试信息放在每个 .OBJ 中 put debug info in every .OBJ
; r# h# g2 n; _4 f/TC 将所有文件编译为 .c compile all files as .c
6 w) u" V8 O0 y7 w7 r9 g& ]/ X/TP 将所有文件编译为 .cpp compile all files as .cpp
2 {/ ^" g( @' V5 A/Yu[file] 使用 .PCH 文件 use .PCH file ) q: B* h$ j. E2 A
/V 设置版本字符串 set version string
7 _8 ~/ T; U9 |/YX[file] 自动的 .PCH 文件 automatic .PCH
# }/ U- W. w, ^# O) j& `/w 禁用所有警告 disable all warnings
$ B0 j6 W: |( t/ \* W3 g/Zm 最大内存分配(默认为 %) max memory alloc (% of default) - T" E2 k2 {0 G- @* B
' x/ M! v/ Q1 C& n
-链接-
, K) B( F+ k- ]: T/MD 与 MSVCRT.LIB 链接 link with MSVCRT.LIB & Z' h: C4 c g+ @6 n: |- g
/MDd 与 MSVCRTD.LIB 调试库链接 link with MSVCRTD.LIB debug lib
3 A% e, l+ G( i/ z/ML 与 LIBC.LIB 链接 link with LIBC.LIB & Z D( }2 h! B- z$ d
/MLd 与 LIBCD.LIB 调试库链接 link with LIBCD.LIB debug lib
. D. r& K3 v2 Q) u9 N0 l/MT 与 LIBCMT.LIB 链接 link with LIBCMT.LIB 3 \" K- M0 O3 i! t) |' j# h
/MTd 与 LIBCMTD.LIB 调试库链接 link with LIBCMTD.LIB debug lib - ^+ j! b# G. p* a
/LD 创建 .DLL Create .DLL / K" b7 |* r9 W$ Y
/F 设置堆栈大小 set stack size
; l& M2 E3 v8 L( ]+ v7 e/LDd 创建 .DLL 调试库 Create .DLL debug libary
5 W) g' [( I8 j6 }$ n& m/link [链接器选项和库] [linker options and libraries] |
|