9.10.1 address
(addr)
The address
attribute specifies an absolute address for
the variable. This attribute can be used in conjunction with a section
attribute. This can be used to start a group of variables at a specific address:
int foo __attribute__((section("mysection"),address(0x900)));
int bar __attribute__((section("mysection")));
int baz __attribute__((section("mysection")));
A variable with the address
attribute cannot be placed
into the auto_psv
space (see the space()
attribute or
the -mconst-in-code
option); attempts to do so will cause a warning and
the compiler will place the variable into the PSV space. If the variable is to be placed
into a PSV section, the address should be a program memory address.