VC compilation Options

Source: Internet
Author: User

Optimization

/O1 Minimized space Minimize spaces

/op[-] Improved floating-point consistency improve floating-pt consistency

/o2 Maximum speed Maximize speed

/os Preferred code space favor

/oa assumes no alias assume no aliasing

/ot Preferred code speed favor codes speed

/ob Inline expansion (default n=0) inline expansion (defaults n=0)

/ow assume cross function alias assume Cross-function aliasing

/od Optimizations (defaults) disable optimizations (default) disabled

/OX maximize option. (/OGITYB2/GS) Maximum opts. (/OGITYB1/GS)

/OG enables global optimization to the Enable global optimization

/oy[-] enables frame pointers to omit the enable frame pointer omission

/oi enable the built-in function enable intrinsic functions

-Code Generation-

/G3 for 80386 optimization optimize for 80386

/G4 for 80486 optimization optimize for 80486

/gr[-] Enable C + + RTTI enable C + + RTTI

/g5 for Pentium optimization optimize for Pentium

/g6 for Pentium Pro optimization optimize for Pentium Pro

/gx[-] Enable C + + exception handling (same as/EHSC) enable C + + EH (same AS/EHSC)

/EHs Enable synchronous C + + exception handling enable synchronous C + + EH

/GD optimized for Windows DLLs optimize for Windows DLLs

/GB for mixed models (default) optimize for blended model

/EHa Enable asynchronous C + + exception handling enable asynchronous C + + EH

/GD __cdecl calling convention __cdecl calling convention

/EHC extern "C" defaults to the nothrow extern "C" defaults to Nothrow

/GR __fastcall calling convention __fastcall calling convention

/gi[-] Enable incremental compilation enable incremental compilation

/GZ __stdcall calling convention __stdcall calling convention

/gm[-] Enable minimal rebuild enable minimal rebuild

/GA optimized for Windows applications optimize for Windows application

/GF enable string pooling enabled string pooling

/qifdiv[-] Enable Pentium Fdiv repair enable Pentium Fdiv fix

/GF enables read-only string pooling enable Read-only string pooling

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.