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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/03/02 07:05
Read: times


 
#33631 - RE: stack size corrected
Yes, stack space must be contiguous. Group all your user-variables into a contiguous block of RAM and start the stack after that.

Its obvious once you realize that the stack is maintained by a single register, the SP (stack pointer) It grows and reduces as a single block with the various call, ret and reti instructions (and interrupts), and there is no mechanism for anything more complex.

kundi

List of 6 messages in thread
TopicAuthorDate
stack size            01/01/70 00:00      
RE: stack size corrected            01/01/70 00:00      
RE: stack size corrected            01/01/70 00:00      
RE: stack size corrected            01/01/70 00:00      
RE: stack size corrected            01/01/70 00:00      
RE: stack size            01/01/70 00:00      

Back to Subject List