Keil Logo

Function Declarations

The C166 Compiler provides a number of extensions for standard C function declarations. These extensions allow you to:

  • Declare a function as an interrupt procedure.
  • Choose the register bank used.
  • Select the memory area where the function is stored.
  • Declare a function as a real-time task function.

You may include these extensions or attributes (many of which may be combined) in the function declaration. Use the following standard format for your C166 Compiler function declarations.

<[>type<]> funcname (<[>args<]>) <[>interrupt vector<]> <[>using bankname<]>


type is the type of the value returned from the function. If no type is specified, int is assumed.
funcname is the name of the function.
args is the argument list for the function.
interrupt indicates that the function is an interrupt function.
vector is the interrupt vector name or trap number.
using specifies which register bank the function uses.
bankname is the register bank name.

Descriptions of these attributes and other features are described in detail in the following sections.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.