buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.16k stars 32 forks source link

Use registers instead of the stack when revelant #120

Closed giann closed 1 year ago

giann commented 1 year ago

https://dl.acm.org/doi/pdf/10.1145/1328195.1328197

Worth it?

giann commented 1 year ago

Will be done following the JIT compiler example

giann commented 1 year ago

An attempt was made here and turned out to be 20% slower than the current implementation.

Possibly due to the fact that instructions are more complex to decode? Would require a little more investigation.