RL78 Attributes (Using the GNU Compiler Collection (GCC))

#### 6.4.2.24 RL78 Attributes ¶

These attributes are supported by the RL78 back end:

`interrupt` ¶
`brk_interrupt`

  These attributes apply to functions.

  They indicate that the specified function is an interrupt handler. The compiler generates function entry and exit sequences suitable for use in an interrupt handler when this attribute is present.

  Use `brk_interrupt` instead of `interrupt` for handlers intended to be used with the `BRK` opcode (i.e. those that must end with `RETB` instead of `RETI`).

`saddr` ¶

  This attribute applies to variables.

  The RL78 back end supports the `saddr` variable attribute. This specifies placement of the corresponding variable in the SADDR area, which can be accessed more efficiently than the default memory region.