Compilation options of vc7.1

Source: Internet
Author: User

Http://www.tekinginfo.com/coding/forum/cndevforum0209_0309/subject_31270.htm

-Optimization -??
/O1 minimize space
/OP [-] Improve floating point consistency improve floating-Pt consistency
/O2 maximum speed maximize speed
/OS ?? Preferred code space ?? Favor code space
/OA assume there is no alias assume no aliasing
/OT preferred code speed favor code speed
/Ob Inline expansion (default n = 0) Inline expansion (default n = 0)
/Ow ?? Suppose the alias of the cross function ?? Assume cross-function aliasing
/OD ?? Disable optimization (default )?? Disable optimizations (default)
/Ox ?? Maximize options. (/Ogityb2/GS) Maximum opts. (/ogityb1/GS)
/Og ?? Enable global optimization ?? Enable global optimization ??
/Oy [-]? Enable frame pointer omitting ?? Enable frame pointer Omission
/OI ?? Enable built-in functions ?? Enable intrinsic functions

-Code Generation -??
/G3 ?? Is 80386 optimized ?? Optimizefor 80386
/G4 ?? Is 80486 optimized ?? Optimizefor 80486
/GR [-]? Enable C ++ rtti ?? Enable C ++ rtti
/G5 ?? Optimize for Pentium ?? Optimize for Pentium
/G6 is optimized for Pentium Pro ?? Optimize for Pentium Pro
/GX [-]? Enable C ++ Exception Handling (same as/ESCS )?? Enable C ++ EH (same as/ESCS)
/EHS ?? Enable synchronous C ++ exception handling ?? Enable synchronous C ++ eh
/GD optimizes optimize for Windows DLL
/GB ?? Optimize the hybrid model (default )?? Optimize for blended model (default)
/EHA ?? Enable asynchronous C ++ exception handling ?? Enable asynchronous C ++ eh
/GD ?? _ Cdecl call conventions ?? _ Cdecl calling convention ??
/EHC ?? Extern "C" is nothrow by default ?? Extern "C" defaults to nothrow
/GR ?? _ Fastcall call Conventions ?? _ Fastcall calling convention
/GI [-] Enable incremental compilation enable incremental compilation
/GZ ?? _ Stdcall call conventions ?? _ Stdcall calling convention ??
/GM [-]? Enable minimum regenerate ?? Enable minimal rebuild
/Ga ?? Optimize optimize for Windows Applications
/GF ?? Enable string pool ?? Enable string pooling ??
/Qifdiv [-]? Enable Pentium fdiv repair ?? Enable Pentium fdiv fix ??
/GF ?? Enable Read-Only string pool ?? Enable Read-Only string pooling ??
/Qi0f [-]? Enable Pentium 0x0f repair ?? Enable Pentium 0x0f fix
/Gy ?? Separate the linker functions ?? Separate functions for linker
/GZ ?? Enable runtime debugging check enable runtime debug checks
/GH enable hook function call
/Ge ?? Force stack check for all functions ?? Force stack checking for all funcs
/GS [num]? Disable stack check call ?? Disable stack checking cballs

-Output file -??
/FA ?? Named assembly list file ?? Name Assembly listing file
/FO ?? Named object file ?? Name object file
/Fa [SC]? Configure the Assembly list ?? Configure Assembly listing ??
/FP ?? Naming precompiled header files ?? Name precompiled header file
/FD ?? Name the. PDB file ?? Name. PDB file ??
/FR ?? Name the source browser file ?? Name source browser File
/Fe ?? Name the executable file ?? Name Executable File
/FR ?? Name extension. SBR file ?? Name extended. SBR File
/FM ?? Naming ing file ?? Name Map File

-Pre-processor -??
/FI ?? Naming forces include files ?? Name forced include file
/C ?? Do not absorb comments ?? Don't strip comments ??
/U ?? Remove a predefined macro ?? Remove predefined macro
/D {=| #}?? Define macro ?? Define macro
/U ?? Remove all predefined Macros ?? Remove all predefined macros
/E ?? Direct preprocessing to standard output preprocess to stdout
/I add to the search path containing files ?? Add to include search path
/EP ?? Redirects preprocessing to standard output. do not include a row number ?? Preprocess to stdout, no # Line
/X ?? Ignore "standard location "?? Ignore "standard places"
/P ?? Preprocessing to files ?? Preprocess to file

-Language -??
/Zi ?? Enable debugging information ?? Enable debugging information
/ZL ?? Ignore the default database name in. OBJ ?? Omit default library name in. OBJ
/Zi ?? Enable the "edit and continue" feature of debugging information Enable Edit and continue debug info
/ZG ?? Generate a function prototype ?? Generate function prototypes
/Z7 ?? Enable legacy debugging information ?? Enable old-style debug info
/Zs ?? Only perform syntax check ?? Syntax check only
/ZD ?? Only line number debugging information is required ?? Line number debugging info only
/VD {0 | 1 }?? Disable/enable vtordisp ?? Disable/enable vtordisp
/ZP [N]? What is the packaging structure on the N-byte boundary ?? Pack structs on n-byte Boundary
/Vm ?? Pointer type pointing to members ?? Type of pointers to members
/Za ?? Disable extension (/OP )?? Disable extensions (implies/OP)
/Nobool ?? Disable the "bool" keyword ?? Disable "bool" keyword
/Ze ?? Enable extension (default )?? Enable extensions (default)

-Miscellaneous -??
/?, /Help ?? Print this help message ?? Print this help message
/C ?? Compile only, do not link ?? Compile only, no link
/W ?? Set the warning level (default n = 1 )?? Set warning level (default n = 1)
/H ?? Maximize external Name Length ?? Max external Name Length
/J ?? The default char type is unsigned ?? Default char type is unsigned
/Nologo ?? Cancel displaying the copyright message ?? Suppress copyright message
/Wx ?? Consider the warning as an error ?? Treat warnings as errors
/TC ?? Compile the file into. c ?? Compile file as. c ??
/YC ?? Create a. PCH file ?? Create. PCH File
/TP ?? Compile the file as. cpp ?? Compile file as. cpp ??
/Yd ?? Put debugging information in each. OBJ ?? Put debug info in every. OBJ
/TC ?? Compile all files into. c ?? Compile all files as. c ??
/TP ?? Compile all files into. cpp ?? Compile all files as. cpp ??
/YU ?? Use the. PCH file ?? Use. PCH File
/V ?? Set the version string ?? Set version string
/Yx ?? Automatic. PCH file automatic. PCH
/W ?? Disable all warnings ?? Disable all warnings
/ZM ?? Maximum memory allocation (% by default )?? Max memory alloc (% of default)

-Link -??
/MD ?? Link to msvcrt. Lib ?? Link with msvcrt. Lib
/MDD ?? Link to msvcrtd. Lib debugging library ?? Link with msvcrtd. Lib debug lib
/Ml ?? Link to libc. Lib ?? Link with libc. Lib
/MLD ?? Link to the libcd. Lib debugging library ?? Link with libcd. Lib debug lib
/MT ?? Link to libcmt. Lib ?? Link with libcmt. Lib ??
/MTD ?? Link to the libcmtd. Lib debugging library ?? Link with libcmtd. Lib debug lib
/LD ?? Create. dll ?? Create. dll ??
/F ?? Set the stack size ?? Set stack size
/LDD ?? Create a. dll debugging library ?? Create. dll debug libary
/Link ?? [Linker Options and libraries]? [Linker Options and libraries]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.