CARM User's Guide

Discontinued

__arm: ARM Function

ARM coded functions are defined using the __arm function attribute. This function attribute is useful when you must reference interrupt functions from Thumb code.

<[>type<]> funcname (<[>args<]>) __arm

Where:

typeis the type of the value returned from the function. If no type is specified, int is assumed.
funcnameis the name of the function.
argsis the argument list for the function.
__armindicates the function is coded with the ARM instruction set.

For example:

void MyARMfunc (void) __arm  {    // use ARM code for following function
  l = (l * u1) + (l * u2);
}
extern void IntrptFunc (void) __arm;
.
.
.
VICVectAddr0 = IntrptFunc;        // initialize Vector Address with ARM entry

Note

  • The __arm attribute switches the CARM Compiler to ARM mode even if the THUMB mode is selected.