⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_31270.htm

📁 vc
💻 HTM
字号:
<p>
序号:31270 发表者:陳章民 发表日期:2003-03-02 16:29:54
<br>主题:Setting&gt;Debug&gt;Project Option
<br>内容:以下是Project Option的語法,請問一下哪裡可以找到這些語法的解說<BR><BR>/nologo /W3 /GX /O2 /I "..\..\common\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:陳章民 回复日期:2003-03-12 00:17:52
<br>内容:Search&nbsp;&nbsp;"Compiler&nbsp;&nbsp;Reference"&nbsp;&nbsp;in&nbsp;&nbsp;MSDN.
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:无情阁东雪 回复日期:2003-03-12 11:56:44
<br>内容:你好好看看下面的内容吧<BR><BR>-优化-&nbsp;&nbsp;<BR>/O1 最小化空间 minimize space <BR>/Op[-] 改善浮点数一致性 improve floating-pt consistency <BR>/O2 最大化速度 maximize speed <BR>/Os&nbsp;&nbsp;优选代码空间&nbsp;&nbsp;favor code space <BR>/Oa 假设没有别名 assume no aliasing <BR>/Ot 优选代码速度 favor code speed <BR>/Ob 内联展开(默认 n=0) inline expansion (default n=0) <BR>/Ow&nbsp;&nbsp;假设交叉函数别名&nbsp;&nbsp;assume cross-function aliasing <BR>/Od&nbsp;&nbsp;禁用优化(默认值)&nbsp;&nbsp;disable optimizations (default) <BR>/Ox&nbsp;&nbsp;最大化选项。(/Ogityb2 /Gs) maximum opts. (/Ogityb1 /Gs) <BR>/Og&nbsp;&nbsp;启用全局优化&nbsp;&nbsp;enable global optimization&nbsp;&nbsp;<BR>/Oy[-]&nbsp;&nbsp;启用框架指针省略&nbsp;&nbsp;enable frame pointer omission <BR>/Oi&nbsp;&nbsp;启用内建函数&nbsp;&nbsp;enable intrinsic functions <BR><BR><BR>-代码生成-&nbsp;&nbsp;<BR>/G3&nbsp;&nbsp;为 80386 进行优化&nbsp;&nbsp;optimize for 80386 <BR>/G4&nbsp;&nbsp;为 80486 进行优化&nbsp;&nbsp;optimize for 80486 <BR>/GR[-]&nbsp;&nbsp;启用 C++ RTTI&nbsp;&nbsp;enable C++ RTTI <BR>/G5&nbsp;&nbsp;为 Pentium 进行优化&nbsp;&nbsp;optimize for Pentium <BR>/G6 为 Pentium Pro 进行优化&nbsp;&nbsp;optimize for Pentium Pro <BR>/GX[-]&nbsp;&nbsp;启用 C++ 异常处理(与 /EHsc 相同)&nbsp;&nbsp;enable C++ EH (same as /EHsc) <BR>/EHs&nbsp;&nbsp;启用同步 C++ 异常处理&nbsp;&nbsp;enable synchronous C++ EH <BR>/GD 为 Windows DLL 进行优化 optimize for Windows DLL <BR>/GB&nbsp;&nbsp;为混合模型进行优化(默认)&nbsp;&nbsp;optimize for blended model (default) <BR>/EHa&nbsp;&nbsp;启用异步 C++ 异常处理&nbsp;&nbsp;enable asynchronous C++ EH <BR>/Gd&nbsp;&nbsp;__cdecl 调用约定&nbsp;&nbsp;__cdecl calling convention&nbsp;&nbsp;<BR>/EHc&nbsp;&nbsp;extern“C”默认为 nothrow&nbsp;&nbsp;extern "C" defaults to nothrow <BR>/Gr&nbsp;&nbsp;__fastcall 调用约定&nbsp;&nbsp;__fastcall calling convention <BR>/Gi[-] 启用增量编译 enable incremental compilation <BR>/Gz&nbsp;&nbsp;__stdcall 调用约定&nbsp;&nbsp;__stdcall calling convention&nbsp;&nbsp;<BR>/Gm[-]&nbsp;&nbsp;启用最小重新生成&nbsp;&nbsp;enable minimal rebuild <BR>/GA&nbsp;&nbsp;为 Windows 应用程序进行优化 optimize for Windows Application <BR>/Gf&nbsp;&nbsp;启用字符串池&nbsp;&nbsp;enable string pooling&nbsp;&nbsp;<BR>/QIfdiv[-]&nbsp;&nbsp;启用 Pentium FDIV 修复&nbsp;&nbsp;enable Pentium FDIV fix&nbsp;&nbsp;<BR>/GF&nbsp;&nbsp;启用只读字符串池&nbsp;&nbsp;enable read-only string pooling&nbsp;&nbsp;<BR>/QI0f[-]&nbsp;&nbsp;启用 Pentium 0x0f 修复&nbsp;&nbsp;enable Pentium 0x0f fix <BR>/Gy&nbsp;&nbsp;分隔链接器函数&nbsp;&nbsp;separate functions for linker <BR>/GZ&nbsp;&nbsp;启用运行时调试检查 enable runtime debug checks <BR>/Gh 启用钩子函数调用 enable hook function call <BR>/Ge&nbsp;&nbsp;对所有函数强制堆栈检查&nbsp;&nbsp;force stack checking for all funcs <BR>/Gs[num]&nbsp;&nbsp;禁用堆栈检查调用&nbsp;&nbsp;disable stack checking calls <BR><BR><BR>-输出文件-&nbsp;&nbsp;<BR>/Fa[file]&nbsp;&nbsp;命名程序集列表文件&nbsp;&nbsp;name assembly listing file <BR>/Fo&nbsp;&nbsp;命名对象文件&nbsp;&nbsp;name object file <BR>/FA[sc]&nbsp;&nbsp;配置程序集列表&nbsp;&nbsp;configure assembly listing&nbsp;&nbsp;<BR>/Fp&nbsp;&nbsp;命名预编译头文件&nbsp;&nbsp;name precompiled header file <BR>/Fd[file]&nbsp;&nbsp;命名 .PDB 文件&nbsp;&nbsp;name .PDB file&nbsp;&nbsp;<BR>/Fr[file]&nbsp;&nbsp;命名源浏览器文件&nbsp;&nbsp;name source browser file <BR>/Fe&nbsp;&nbsp;命名可执行文件&nbsp;&nbsp;name executable file <BR>/FR[file]&nbsp;&nbsp;命名扩展 .SBR 文件&nbsp;&nbsp;name extended .SBR file <BR>/Fm[file]&nbsp;&nbsp;命名映射文件&nbsp;&nbsp;name map file <BR><BR><BR>-预处理器-&nbsp;&nbsp;<BR>/FI&nbsp;&nbsp;命名强制包含文件&nbsp;&nbsp;name forced include file <BR>/C&nbsp;&nbsp;不吸取注释&nbsp;&nbsp;don't strip comments&nbsp;&nbsp;<BR>/U&nbsp;&nbsp;移除预定义宏&nbsp;&nbsp;remove predefined macro <BR>/D{=|#}&nbsp;&nbsp;定义宏&nbsp;&nbsp;define macro <BR>/u&nbsp;&nbsp;移除所有预定义宏&nbsp;&nbsp;remove all predefined macros <BR>/E&nbsp;&nbsp;将预处理定向到标准输出 preprocess to stdout <BR>/I 添加到包含文件的搜索路径&nbsp;&nbsp;add to include search path <BR>/EP&nbsp;&nbsp;将预处理定向到标准输出,不要带行号&nbsp;&nbsp;preprocess to stdout, no #line <BR>/X&nbsp;&nbsp;忽略“标准位置”&nbsp;&nbsp;ignore "standard places" <BR>/P&nbsp;&nbsp;预处理到文件&nbsp;&nbsp;preprocess to file <BR><BR><BR>-语言-&nbsp;&nbsp;<BR>/Zi&nbsp;&nbsp;启用调试信息&nbsp;&nbsp;enable debugging information <BR>/Zl&nbsp;&nbsp;忽略 .OBJ 中的默认库名&nbsp;&nbsp;omit default library name in .OBJ <BR>/ZI&nbsp;&nbsp;启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info <BR>/Zg&nbsp;&nbsp;生成函数原型&nbsp;&nbsp;generate function prototypes <BR>/Z7&nbsp;&nbsp;启用旧式调试信息&nbsp;&nbsp;enable old-style debug info <BR>/Zs&nbsp;&nbsp;只进行语法检查&nbsp;&nbsp;syntax check only <BR>/Zd&nbsp;&nbsp;仅要行号调试信息&nbsp;&nbsp;line number debugging info only <BR>/vd{0|1}&nbsp;&nbsp;禁用/启用 vtordisp&nbsp;&nbsp;disable/enable vtordisp <BR>/Zp[n]&nbsp;&nbsp;在 n 字节边界上包装结构&nbsp;&nbsp;pack structs on n-byte boundary <BR>/vm&nbsp;&nbsp;指向成员的指针类型&nbsp;&nbsp;type of pointers to members <BR>/Za&nbsp;&nbsp;禁用扩展(暗指 /Op)&nbsp;&nbsp;disable extensions (implies /Op) <BR>/noBool&nbsp;&nbsp;禁用“bool”关键字&nbsp;&nbsp;disable "bool" keyword <BR>/Ze&nbsp;&nbsp;启用扩展(默认)&nbsp;&nbsp;enable extensions (default) <BR><BR><BR>- 杂项 -&nbsp;&nbsp;<BR>/?, /help&nbsp;&nbsp;打印此帮助消息&nbsp;&nbsp;print this help message <BR>/c&nbsp;&nbsp;只编译,不链接&nbsp;&nbsp;compile only, no link <BR>/W&nbsp;&nbsp;设置警告等级(默认 n=1)&nbsp;&nbsp;set warning level (default n=1) <BR>/H&nbsp;&nbsp;最大化外部名称长度&nbsp;&nbsp;max external name length <BR>/J&nbsp;&nbsp;默认 char 类型是 unsigned&nbsp;&nbsp;default char type is unsigned <BR>/nologo&nbsp;&nbsp;取消显示版权消息&nbsp;&nbsp;suppress copyright message <BR>/WX&nbsp;&nbsp;将警告视为错误&nbsp;&nbsp;treat warnings as errors <BR>/Tc&nbsp;&nbsp;将文件编译为 .c&nbsp;&nbsp;compile file as .c&nbsp;&nbsp;<BR>/Yc[file]&nbsp;&nbsp;创建 .PCH 文件&nbsp;&nbsp;create .PCH file <BR>/Tp&nbsp;&nbsp;将文件编译为 .cpp&nbsp;&nbsp;compile file as .cpp&nbsp;&nbsp;<BR>/Yd&nbsp;&nbsp;将调试信息放在每个 .OBJ 中&nbsp;&nbsp;put debug info in every .OBJ <BR>/TC&nbsp;&nbsp;将所有文件编译为 .c&nbsp;&nbsp;compile all files as .c&nbsp;&nbsp;<BR>/TP&nbsp;&nbsp;将所有文件编译为 .cpp&nbsp;&nbsp;compile all files as .cpp&nbsp;&nbsp;<BR>/Yu[file]&nbsp;&nbsp;使用 .PCH 文件&nbsp;&nbsp;use .PCH file <BR>/V&nbsp;&nbsp;设置版本字符串&nbsp;&nbsp;set version string <BR>/YX[file]&nbsp;&nbsp;自动的 .PCH 文件 automatic .PCH <BR>/w&nbsp;&nbsp;禁用所有警告&nbsp;&nbsp;disable all warnings <BR>/Zm&nbsp;&nbsp;最大内存分配(默认为 %)&nbsp;&nbsp;max memory alloc (% of default) <BR><BR><BR>-链接-&nbsp;&nbsp;<BR>/MD&nbsp;&nbsp;与 MSVCRT.LIB 链接&nbsp;&nbsp;link with MSVCRT.LIB <BR>/MDd&nbsp;&nbsp;与 MSVCRTD.LIB 调试库链接&nbsp;&nbsp;link with MSVCRTD.LIB debug lib <BR>/ML&nbsp;&nbsp;与 LIBC.LIB 链接&nbsp;&nbsp;link with LIBC.LIB <BR>/MLd&nbsp;&nbsp;与 LIBCD.LIB 调试库链接&nbsp;&nbsp;link with LIBCD.LIB debug lib <BR>/MT&nbsp;&nbsp;与 LIBCMT.LIB 链接&nbsp;&nbsp;link with LIBCMT.LIB&nbsp;&nbsp;<BR>/MTd&nbsp;&nbsp;与 LIBCMTD.LIB 调试库链接&nbsp;&nbsp;link with LIBCMTD.LIB debug lib <BR>/LD&nbsp;&nbsp;创建 .DLL&nbsp;&nbsp;Create .DLL&nbsp;&nbsp;<BR>/F&nbsp;&nbsp;设置堆栈大小&nbsp;&nbsp;set stack size <BR>/LDd&nbsp;&nbsp;创建 .DLL 调试库&nbsp;&nbsp;Create .DLL debug libary <BR>/link&nbsp;&nbsp;[链接器选项和库]&nbsp;&nbsp;[linker options and libraries] <BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -