##### Syntax

-Org

##### Description

The -Org option enables allocation of local variables and addresses of global variables and functions to processor registers for the lifetime of a function. This form of register allocation will always reduce code size but may reduce execution speed for some paths through the function.

##### Setting this in CrossStudio

To enable allocation of local variables and addresses of global variables and functions to processor registers for a project:

- Select the project in the Project Explorer.
- In the Optimization Options group set the Register Allocation property to Locals and Globals.

To enable allocation of local variables and addresses of global variables and functions to processor registers for a particular file:

- Select the file in the Project Explorer.
- In the Optimization Options group set the Register Allocation property to Locals and Globals.

##### See Also

-Or- (Disable register allocation), -Orl (Register allocation of locals)