4.1.7 __task Keyword

This keyword allows functions to relax the rules for preserving registers. Typically, the keyword is used on the start function for a task in an RTOS.

Suggested Replacement

__attribute__((target(‘naked’)))

Caveats

None.

Examples

Consider migrating IAR code such as:

__task void my_handler(void);

XC32:

__attribute__((target('naked'))) void my_handler(void);

Further Information

None.