### global_optimizer

Controls whether the Global Optimizer is invoked by the compiler.

##### Syntax

#pragma global_optimizer on | off | reset

##### Targets

All platforms.

##### Remarks

In most compilers, this pragma determines whether the Global Optimizer is invoked in the Global Optimizations panel. If disabled, only simple optimizations and back-end optimizations are performed.

NOTE This is not the same as #pragma optimization_level. The Global Optimizer is invoked even at optimization_level 0 if #pragma global_optimizer is enabled.

This pragma corresponds to the settings in the Global Optimizations panel. To check this setting, use __option (global_optimizer) described in Checking Settings. The default setting is on.