VC.Net 2003 Optimization Options

xiaoxiao2021-03-06  41

MSDN original:

Optimizing your code with Visual C

VS.NET Add Optimization Option:

1. / g7 - Enables the compiler to optimize the Pentium 4 and AMD Athlon processor.

Compared to VC.NET 2002, the operation of the program can reach 5% - 10% speed.

note

: / G7 does not mean that the resulting code can only run on P4 and Athlon. The resulting code can still be run on the old CPU, just on the old CPU, there may be a little performance loss. Vc.net default settings are / GB, = / g6, = Code optimization for Pentium Pro, Pentium II, and Pentium III.

2. / Arch: SSE and / ARCH: SSE2, use SSE, SSE2 instructions.

Experience (BEST PRACTICES)

Usually practices, the applet uses / O2 (maximum speed), and the large program uses / O1 (minimum code size) compile.

转载请注明原文地址:https://www.9cbs.com/read-67926.html

New Post(0)