The REGISTERBANK directive selects which register bank to
use for subsequent functions declared in the source file. Resulting
code may use the absolute form of register access when the absolute
register number can be computed. The using function attribute
supersedes the effects of the REGISTERBANK directive.
Note
Unlike the using function attribute, the
REGISTERBANK control does not switch the register bank.
Functions that return a value to the caller must always use the
same register bank as the caller. If the register banks are not the
same, return values may be returned in registers of the wrong
register bank.
The REGISTERBANK directive may appear more than once in
a source program. However, it may be specified only outside a
function definition (since it affects the code generated for the
entire function). The directive is ignored if used within a
function declaration.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.