CARM User's Guide

Discontinued

__thumb: Thumb Function

Thumb coded functions are defined using the __thumb function attribute.

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

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.
__thumbindicates the function is coded with the Thumb instruction set.

For example:

void MyARMfunc (void) __thumb  {    // use Thumb code for following function
  l = x + 4;
}

Note

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