##### Syntax

-Orl

##### Description

The -Orl option enables allocation of local variables to processor registers for the lifetime of a function. Register allocation of locals to processor registers will always reduce code size and increase execution speed.

##### Setting this in CrossStudio

To enable allocation of local variables 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 Only.

To enable allocation of local variables 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 Only.

##### See Also

-Or- (Disable register allocation), -Org (Register allocation of locals and global addresses)