optimize
#pragma optimize( "[optimization-list]", {on | off} )
Feature Only in Professional and Enterprise Edition Code optimization is supported only in Visual C++ Professional and Enterprise Editions. For more information, see Visual C++ Editions.
Specifies optimizations to be performed on a function-by-function basis. The optimize pragma must appear outside a function and takes effect at the first function defined after the pragma is seen. The on and off arguments turn options specified in the optimization-list on or off.
The optimization-list can be zero or more of the parameters shown in Table 2.2.
Table 2.2 Parameters of the optimize Pragma
Parameter(s) Type of optimization
a Assume no aliasing.
g Enable global optimizations.
p Improve floating-point consistency.
s or t Specify short or fast sequences of machine c
C++ Release编译时如何对某段代码不进行优化
最新推荐文章于 2024-07-14 13:39:50 发布