??? 08/07/05 20:08 Read: times |
#98961 - come in Responding to: ???'s previous message |
hi,
De Spiegelaere Nico said:
Also you realy have to make sure, if you let's say save content twice and restore content only ones you could have a problem with getting the write values back.
You are not so far from the real problem. But you come to problem of un-balanced stack usage where you push something and then forget to restore it. The problem I wish to point in is surely the stack pointer usage. But this is not due a programmer "forgets" of popping; the problem comes from the code optimization we do often and often. Try to find it. The answer is in the original post especially when you look at the next lines: A_SUBROUTINE: CALL SAVE_CONTEXT ; some work CALL RESTORE_CONTEXT RETTry to optimize this piece of code then trace what happens when optimization utilizes both subroutines I posted and the answer will be clean! Regards, Oleg |