Skip to main content

IAR Embedded Workbench for RH850 3.20.x

--lock_10_regs

In this section:
Syntax
--lock_10_regs
Description

Normally R1 and R6R29 are available for the compiler to use.

Use this option to prevent the compiler from using registers R15R24.

Note that the register R2 is always free to use by an operating system, because it is not used by the compiler at all.

See also

Register locking, --lock_global_pointer_regs, and --lock_regs_compatibility.

Caution

Project>Options>C/C++ Compiler>Optimizations>Lock R15–R24