??? 03/02/05 10:35 Read: times |
#88855 - Don't Do It!! Responding to: ???'s previous message |
Sure, you can hack about with the stack - but, as Michael said:
Michael Karas said:
Maybe, just maybe, an extremely seasoned programmer can find a way to get a kludge like that to work. But I can infer from your question about LJMPing out of a C timer ISR that you are not that seasoned programmer. Also, as Brian Kernighan said: "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it!" While the approach that Rahul is requesting may be achievable (eg, by hacking the stack in an ISR), it is really not a good idea. The underlying problem needs to be reconsidred, and the code re-implemented in a well-structured way - not kludged! Well, that's my opinion, anyway. |