### optimization_level

Controls global optimization.

##### Syntax

#pragma optimization_level 0 | 1 | 2 | 3 | 4

##### Targets

All platforms.

##### Remarks

This pragma specifies the degree of optimization that the global optimizer performs.

To select optimizations, use the pragma optimization_level with an argument from 0 to 4. The higher the argument, the more optimizations performed by the global optimizer.

For more information on the optimization the compiler performs for each optimization level, refer to the Targeting manual for your target platform.

These pragmas correspond to the settings in the Global Optimizations panel. By default, the settings corresponds to the level set in the Global Optimizations panel.