6.31.16 MeP Function Attributes

These function attributes are supported by the MeP back end:

disinterrupt

On MeP targets, this attribute causes the compiler to emit instructions to disable interrupts for the duration of the given function.

interrupt

Use this attribute to 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.

near

This attribute causes the compiler to assume the called function is close enough to use the normal calling convention, overriding the -mtf command-line option.

far

On MeP targets this causes the compiler to use a calling convention that assumes the called function is too far away for the built-in addressing modes.

vliw

The vliw attribute tells the compiler to emit instructions in VLIW mode instead of core mode. Note that this attribute is not allowed unless a VLIW coprocessor has been configured and enabled through command-line options.