Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/12/03 17:33
Read: times


 
#52495 - RE: stack pointer - measuring usage
Responding to: ???'s previous message
You can measure the usage using your program - add a "compare SP with highest seen SP" macro to the beginning of a timer ISR. This will give you a good idea of typical, but I don't think it can give you worst case (Murphy) usage.

You can also put a known byte into the stack area, before using it, then see what the "high-level water mark" is after running.

List of 13 messages in thread
TopicAuthorDate
stack pointer            01/01/70 00:00      
   RE: stack pointer            01/01/70 00:00      
   RE: stack pointer            01/01/70 00:00      
      RE: stack pointer            01/01/70 00:00      
         RE: stack pointer            01/01/70 00:00      
      RE: stack pointer - measuring usage            01/01/70 00:00      
         RE: stack pointer - measuring usage            01/01/70 00:00      
            RE: stack profilers            01/01/70 00:00      
   RE: stack pointer            01/01/70 00:00      
      RE: stack pointer            01/01/70 00:00      
         RE: stack pointer            01/01/70 00:00      
            RE: stack pointer            01/01/70 00:00      
               RE: stack pointer            01/01/70 00:00      

Back to Subject List