AnsweredAssumed Answered

Writing Interrupt Handlers

Question asked by xol.xol on Dec 13, 2012
Latest reply on Apr 8, 2014 by Andrew Neil
Hi,
I wonder if C compiler has to know that the given function is an interrupt handler. Looking at the sample code I see not pragmas or any other ways to tell compiler about it. From the other side as far as I could understand Cortex-M3 documentation Interrupt Controller does not save all registers in stack before call to IRQ handler so it is not clear to me how damaging of other not saved registers is prevented?

Thanks.
 

Outcomes