[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] TimerA interrupt handler




Am 03.01.2013 um 20:34 schrieb Vincent Rivière:

In both cases, GCC backups all the registers (including d0/d1/a0/a1) and returns using rte (instead of rts).

--
Vincent Rivière



Beware:

Depending on target architecture, gcc also saves and restores the math coprocessor scratch registers (FP0-FP1) which might or might not be what you want.
The construct is fragile/dependent regarding other compiler switches (-fomit-frame-pointer, for example) - I found it often necessary to check the generated code to avoid surprises when writing code for different architectures since the stack frame changes when you change compiler switches.

Regards,
Markus