Non-Confidential | ![]() | ARM DUI0472M | ||
| ||||
Home > Compiler Command-line Options > --global_reg=reg_name[,reg_name,...] |
Treats the specified register names as fixed registers, and prevents the compiler from generating code that uses these registers.
--global_reg=
[,reg_name
,...]
reg_name
Where
is the AAPCS name of the register,
denoted by an integer value in the range reg_name
1
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
.
This option has the same restrictions as the __global_reg
storage class
specifier.
--global_reg=1,4,5
Reserves registers r4
, r7
and
r8