17.3.3 Vector Pragma

Note: The vector pragma is provided only for compatibility when porting code from other compilers. The vector function attribute is the preferred way to associate a handler function to an exception vector address.

The vector pragma creates one or more dispatch functions targeting the indicated function. For target functions specified with the interrupt pragma, this functions as if the vector clause had been used. The target function of a vector pragma can be any function, including external functions implemented in assembly or by other means.

# pragma vector function-name vector vector-number [, vector-number-list]

The following pragma defines a dispatch function targeting foo at exception vector address 54.

#pragma vector foo 54