6.33.22 NDS32 Function Attributes
These function attributes are supported by the NDS32 back end:
exception
-
Use this attribute on the NDS32 target to indicate that the specified function is an exception handler. The compiler will generate corresponding sections for use in an exception handler.
interrupt
-
On NDS32 target, this attribute indicates that the specified function is an interrupt handler. The compiler generates corresponding sections for use in an interrupt handler. You can use the following attributes to modify the behavior:
nested
-
This interrupt service routine is interruptible.
not_nested
-
This interrupt service routine is not interruptible.
nested_ready
-
This interrupt service routine is interruptible after
PSW.GIE
(global interrupt enable) is set. This allows interrupt service routine to finish some short critical code before enabling interrupts. save_all
-
The system will help save all registers into stack before entering interrupt handler.
partial_save
-
The system will help save caller registers into stack before entering interrupt handler.
naked
-
This attribute allows the compiler to construct the requisite function declaration, while allowing the body of the function to be assembly code. The specified function will not have prologue/epilogue sequences generated by the compiler. Only basic
asm
statements can safely be included in naked functions (see Basic Asm). While using extendedasm
or a mixture of basicasm
and C code may appear to work, they cannot be depended upon to work reliably and are not supported. reset
-
Use this attribute on the NDS32 target to indicate that the specified function is a reset handler. The compiler will generate corresponding sections for use in a reset handler. You can use the following attributes to provide extra exception handling:
nmi
-
Provide a user-defined function to handle NMI exception.
warm
-
Provide a user-defined function to handle warm reset exception.
Next: Nios II Function Attributes, Previous: MSP430 Function Attributes, Up: Function Attributes [Contents][Index]
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gcc/NDS32-Function-Attributes.html