gcc: RL78 Function Attributes

1 
1 6.31.25 RL78 Function Attributes
1 --------------------------------
1 
1 These function attributes are supported by the RL78 back end:
1 
1 'interrupt'
1 'brk_interrupt'
1      These attributes indicate that the specified function is an
1      interrupt handler.  The compiler generates function entry and exit
1      sequences suitable for use in an interrupt handler when this
1      attribute is present.
1 
1      Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
1      be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
1      instead of 'RETI').
1 
1 'naked'
1      This attribute allows the compiler to construct the requisite
1      function declaration, while allowing the body of the function to be
1      assembly code.  The specified function will not have
1      prologue/epilogue sequences generated by the compiler.  Only basic
11      'asm' statements can safely be included in naked functions (⇒
      Basic Asm).  While using extended 'asm' or a mixture of basic
1      'asm' and C code may appear to work, they cannot be depended upon
1      to work reliably and are not supported.
1