3 ms·
Among all the other reasons stated, like independence from platform registers, stack-based VMs are really easy to implement -- you don't need to worry about reg
by maximilianburke 3y ago
Among all the other reasons stated, like independence from platform registers, stack-based VMs are really easy to implement -- you don't need to worry about register allocation in your VM code generator, you can leave that bit to the stage of the VM that generates native code which would need register allocation, even on a register-based VM.