15.2.36 Vector Function Attribute

The vector (num) attribute instructs the compiler to generate a branch instruction at the indicated exception vector which targets the function. See Interrupts and Exception Handlers. For example:
void __attribute__((vector(0), interrupt(IPL7AUTO))) myisr(void);