BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Use unused stack space for variables #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Without recursion, we can compute maximum call depth and estimate maximum stack 
use.
(We have to make reserve for interrupts and stack possibly used by assembler 
routines).

If the top of the stack is defined in processor file, we may just allocate 
adequate block of memory for it and leave the rest for variables.

Original issue reported on code.google.com by rudla.ku...@gmail.com on 17 Mar 2011 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 20 Mar 2011 at 10:40

GoogleCodeExporter commented 9 years ago
Clever, 5oft's largest game so far (Special Forces) used max. 17 bytes of 
stack. High level code will use more but there are a lot of free bytes to use 
there. Next stop - casette tape buffer.

Original comment by pawel.ka...@gmail.com on 23 Mar 2011 at 10:29