DOC

mircrosoftvisualstudio

By William Coleman,2014-05-17 15:09
16 views 0
mircrosoftvisualstudio

    C/C++ COMPILER OPTIONS : 编译程序任选项

    -OPTIMIZATION-

    ?最佳化,最优化,【数字】最优化?

    /O1 minimize space !走廊空间最小化 /Op[-] improve floating-pt consistency /O2 maximize speed /Os favor code space

    /Oa assume no aliasing /Ot favor code speed

    /Ob<n> inline expansion <default n=0> /Ow assume cross-function aliasing /Od disable optimizations<default> /Ox maximum opts.</Ogitybl /Gs> /Og enable global optimization /Oy[-] enable frame pionter omission /Oi enable intrinsic functions

     -CODE GENERATION-

     ?代码生成?

    /G3 optimize for 80386 /Gy separate function for linker /G4 optimize for 80486 /Ge force stack checking for all funcs /G5 optimize for Pentium /Gs [num] disable stack checking calls /G6 optimize for Pentium Pro /Gh enable hook function call /GB optimize for blended model <.defaul> /GR[-] enable c++ RTTI

    /Gd __cdecl calling convention /GX[-] enable c++ EH <same ad /EHsc> /Gr __fastcall calling convention /Gi[-] enable incremental compilation /Gz __stdcall calling convention /Gm[-] enable minimal rebuild /GA ptimize for Windows Application /EHs enable synchronous c++ EH /GD optimize for Windows DLL /EHa enable asynchronous c++ EH <press <return> to continue>

    /Gf enable sring poling /EHc extern c defaults to nothrow /GF enable string poling /QIfdiv[-] enable Pentium FDIU fix /GZ enable runtime debug checks /QI0F[-] enable Pentium 0x0f fix

     -OUTPUT FILES-

     ?输出文件?

/Fa[file] name assembly listing file

    /FA[sc] configure assembly listing /Fo<file> name object file /Fd[file] name .PDB file /Fp<file> name precompiled header file /Fe<file> name executable file /Fr[file] name source browser file /Fm[file] name map file /FR[file] name extended .SBR file

     -PREPROCESSOR-

     ?预处理器?

    /C dont strip comments /FI<file> name forced include file /D <name>{=!#}<text> define macro /U<name> remove predefined macro /E preprocess to stdout /u remove all predefined macros /EP preprocess to stdout, no #line /I<dir> add to include search path /P preprocess to file /X ignore standard places

     - LANGUAGE -

     ?编译语种?

    /Zi enable debugging information /Zl omit default library name in .OBJ /ZI enable Edit and Continue debug info /Zg generate function prototypes <press<return> to continue>

    /Z7 enable old-style debug info /Zs syntax check only

    /Zd line number debugging info only /vd{0:1} disable/enable vtordisp /Zp[n] pack structs on n-byte boundary /vm<x> type of pointers to members /Za disable extensions <implies/Op> /noBool disable bool keyword

    /Ze enable extension <default>

     -MISCELLANEOUS-

     (常见问题解答之杂项)

    /?, /help print this help message /V<string> set version string /c compile only, no link /w disable all warning level <default n=1> /H<num> max external name length /W<n> set warning as errors /J default char type is unsigned /WX ctreat warning as errors /nologe suppress copyright message /Yc[file] use .PCH file

    /Tc<source file> compile file as .c /Yd put debug info in every .OBJ /Tp<source file> compile file as .cpp /Yu[file] use .PCH file /TC compile all files as .c /YX[file] automatic .PCH /TP compile all files as .cpp /Zm<n> max memory alloc < % of default>

     -LINKING-

     ?链接?

     /MDd link with MSVCRTD.LIB debug lib /MD link with MSVCRT.LIB /MLd link with LIBCD.LIB debug lib /ML link with LIBC.LIB /MTd link with LIBCMTD.LIB debug lib /MT link with LIBCMT.LIB /F<num> set stack size

    /LD Create .DLL

    <press <return> to continue> /link [ linker options and libraries] /LDd Create .DLL debug library

Report this document

For any questions or suggestions please email
cust-service@docsford.com