I have three ISRs which do nothing, but, as far as I know, they need to be there, as the repective interrupts are all used as sleep wake ups.
Left to its own devices, GCC will add the code to save and restore registers/status, which is fine.
If I add the NAKED attribute, and manually add the reti(), then I get a big saving on code space, but is there a convenient(without resorting to assembler) way to place the reti() in the vector table, as this would save another couple of bytes per ISR?
Level: Raving Lunatic
Joined: Sat. Sep 20, 2003
Posts: 6192 View posts
Location: Underneath the Cotswolds escarpment, England.