| |||
| Home > Compiler Command-line Options > --global_reg=reg_name[,reg_name,...] | |||
This option treats the specified register names as fixed registers, and prevents the compiler from using them in the code that is generated.
Try to avoid using this option, because it restricts the compiler in terms of register allocation and can potentially give a negative effect on code generation and performance.
--global_reg=reg_name[,reg_name,...]
Where is
the AAPCS name of the register, denoted by an integer value in the
range reg_name1 to 8.
Register names 1 to 8 map
sequentially onto registers r4 to r11.
If is
unspecified, the compiler faults use of reg_name --global_reg.
ARM Software Development Toolkit Reference Guide.