PlasmaLang / plasma

Plasma Programming Language
Other
162 stars 10 forks source link

Support a "spegetti stack" #455

Open PaulBone opened 1 year ago

PaulBone commented 1 year ago

Add a stack structure that can allow us to re-use stack frames. There's lots of different stratergies but I'm partial to a spagetti stack that makes use of the GC to clean up frames. Something like.

If stack frames are not captured, that is this is this part of the program isn't making use of continuations or similar features, or only captures them but never replays them. Then the AM should work as near as possible to native execution, especially with regard to something like the x86 shadow stack.