News for hackers. Stuff that matters.
Re:Building a Minimalistic Virtual Machine by int_19h on Saturday February 25, 2023 @10:30PM (#34942785)
It might be worth linking the instruction set in the sources (there doesn't seem to be a doc yet?) - it gives a fairly decent picture of what kind of VM we're talking about:

https://github.com/maximecb/uvm/blob/main/vm/src/vm.rs

One thing I didn't quite grok there. It seems that the operand stack is also used directly for locals and hence is indexable, with what looks like an implicit frame base register? But the stack is not addressable. Is the language runtime expected to manage a separate in-memory stack for addressable locals and dynamically allocated arrays, like wasm?

There are no comments on this comment yet.