Options — C51 — Don't use absolute register accesses.
Description
The AREGS control causes the compiler to use absolute
addressing for registers R0-R7 to improve the efficiency of the
generated code. When this directive is used, the compiler must know
the register bank to use to generate code. The register bank may be
defined with the REGISTERBANK directive.
For example, using the 8051 instruction set:
PUSH and POP instructions may be used only with
direct or absolute addresses.
Register-to-register moves are not possible.
Using the AREGS directive allows the compiler to directly
push and pop registers and to move from register-to-register.
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.