Enables flattening optimizations. Calls to subroutines immediately followed
by an unconditional return instruction are converted into jumps to the subroutine.
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 Flattening
Optimization property to Yes