| ??? 12/02/07 16:31 Read: times |
#147728 - Burning stack bytes Responding to: ???'s previous message |
Well, Yeah, You have to push all the registers You use in any interrupt unless You want to get a real mess around. Thus using table lookups, and that IS costly on C, is to be avoided during interrupts.
This caused me a headache with AVR1200 as it has no RAM and no push instructions either. You can use subroutine calls and it also serves interrupts (only one). You just have to limit the depth of Yer calls to 1 and be extra cautious with the registers You use during the interrupt. LOL, I'm such a bad coder myself. I started using the C compiler after I noticed that it could produce much faster and simpler assembly than my lousy effort. This is especially true for the newer generation CPU's. The Motorola MC6800 (which I started with) is a different story though as there was no C compiler for it at that time (late 70's) and I had to code the compiler myself . |



