HParker / dotal

Dotal Language
45 stars 0 forks source link

Implement Stack Register Allocation algorithm #1

Open HParker opened 1 year ago

HParker commented 1 year ago

Right now all local and global variables are allocated in memory and a dotal program often generates a lot of LOAD/STORE type instructions reading things into the stack temporarily just to save them back into memory. We should be able to improve this with a method similar to the one described in this paper: http://www.euroforth.org/ef06/shannon-bailey06.pdf

Thank you to the kind emailer who sent me this paper!