C Language and Libraries Help (clang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
optimize
◄Up► ◄Contents► ◄Index► ◄Back►
─────C/C++ Language─────────────────────────────────────────────────────────
Pragma: optimize
Syntax: #pragma optimize( "[optimization switch list]", {off | on} )
Summary: Specifies optimizations to be performed. Must appear
outside of a function.
See also: ◄Optimization Options►
The optimization switch list may be zero or more of the following:
a, c, e, g, l, n, p, t, w. These are the same letters used with
the /O compiler options. For example,
#pragma optimize( "lge", off )
Two special forms are supported. The form below turns off all
optimization:
#pragma optimize( "", off )
The form below restores all optimization switch settings to their
original (or default) settings:
#pragma optimize( "", on )
-♦-