Syntax
-Ocm
Description
Enables the code motion optimization. Code motion moves blocks of instructions from one place to another to reduce the number of jump instructions in the final program. Code motion will always reduce code size and increase execution speed.
It is extremely difficult to debug a program which has been linked with code motion enabled because parts of functions will be moved around the program and merged with other functions.
Setting this in CrossStudio
To enable this optimization for a project:
- Select the project in the Project Explorer.
- In the Optimization Options group set the Code Motion Optimization property to Yes.