Next:Epiphany Function Attributes, Previous:BPF Function Attributes, Up:Declaring Attributes of Functions [Contents][Index]
These function attributes are supported by the C-SKY back end:
interrupt ¶isrUse these attributes to indicate that the specified functionis an interrupt handler.The compiler generates function entry and exit sequences suitable foruse in an interrupt handler when either of these attributes are present.
Use of these options requires the-mistack command-line optionto enable support for the necessary interrupt stack instructions. Theyare ignored with a warning otherwise. SeeC-SKY Options.
naked ¶This attribute allows the compiler to construct therequisite function declaration, while allowing the body of thefunction to be assembly code. The specified function will not haveprologue/epilogue sequences generated by the compiler. Only basicasm statements can safely be included in naked functions(seeBasic Asm — Assembler Instructions Without Operands). While using extendedasm or a mixture ofbasicasm and C code may appear to work, they cannot bedepended upon to work reliably and are not supported.