| ??? 06/07/01 21:46 Read: times |
#12291 - RE: stack management |
I was wondering if you atrying to see the maximum size of the stack or if it hits a certain high water mark.
The problem with doing what you are suggesting is that if the last byte written to the stack is the same as the init value your simple function will be off by one byte. If you are doing a high water test set a write access breakpoint at the upper limit that you are willing to accept. If that location is wrtten to you will have verification of stack utilzation but also by using trace you can see how you got there. This works very well in the Raisonance tools.:-) Bryan Whitton American Raisonance Inc. 877-315-0792 Gopal Sundaram wrote: ------------------------------- Hello Everyone: I was wondering if Kiel (or any 8051 compiler )allows the application program to access the compiler stack ( get the starting address of the stack and read the contents of this stack) or is it hidden from the application. What I want to do is paint the compiler stack during initialization with a unique pattern . As the stack grows and shrinks it will overwrite the area with its data. At a later time a simple loop can run through the stack's predefined area to detect the furthest extent of the stack. thanks in advance gopal |
| Topic | Author | Date |
| stack management | 01/01/70 00:00 | |
| RE: stack management | 01/01/70 00:00 | |
| RE: stack management | 01/01/70 00:00 | |
RE: stack management | 01/01/70 00:00 |



