Node: Freeregs Directive, Next: Frame Directive, Previous: Literal Prefix Directive, Up: Xtensa Directives
This directive tells the assembler that the given registers are unused in the region.
.begin freeregs ri[,ri...] .end freeregs
This allows the assembler to use these registers for relaxations or optimizations. (They are actually only for relaxations at present, but the possibility of optimizations exists in the future.)
Nested freeregs
directives can be used to add additional registers
to the list of those available to the assembler. For example:
.begin freeregs a3, a4 .begin freeregs a5
has the effect of declaring a3
, a4
, and a5
all free.