??? 08/11/07 20:53 Read: times |
#143117 - 1 of 2 ways Responding to: ???'s previous message |
I am not sure if it is still true, but Keil did not use the stack for data.
1) fill the stack with a specific number. Periodically read the stack area to see how far it has been used. 2) the stack works down toward the variable memory. Reserve the last byte (or two) of memory. If it changes you know the stack has overflow. Neither of course can be 100% reliable |