### scheduling

Specifies the use of instruction scheduling optimization.

##### Syntax

#pragma scheduling on | off

##### Targets

Intel x86

##### Remarks

This pragma lets you choose how the compiler rearranges instructions to increase speed. Some instructions, such as a memory load, take more than one processor cycle. By moving an unrelated instruction between the load and the instruction that uses the loaded item, the compiler saves a cycle when executing the program.

NOTE When enabled, the relationship between the source and object code is not guaranteed to be one-to-one. This may cause the “current source line” cursor to jump around unpredictably in editor windows showing the scheduled code. The worst of this can be avoided by enabling the Disable opimizations for debug setting in the x86 CodeGen panel.

This pragma correspondes to the x86 CodeGen panel setting.