is it a must to specify __attribute__((interrupt)) for my (C function) interrupt/exception handlers?
i understand that in Cortex-m3, the processor will automatically do the stacking BEFORE branching to the exception handler, and also do the unstacking AFTER returning from exception handler, independent of the exception handler contents.
In this case, the exception handler works just like a generic function call.. so why do we need to specifically tell the compiler that the routine is a exception/interrupt handler?
thank you.