|
|
|
|
|
by tptacek
4054 days ago
|
|
Stack VMs aren't used just because they're easier to understand: * In interpreted environments, registers are stored in memory anyways, so the advantage of simulating them isn't as great * It is easier to generate code for stack machines, because you don't need to run register allocation * There's a tradeoff in instruction complexity versus number of instructions between stack and register machines |
|
Wonder which is a better source represntation for a JIT thou.
[1] https://www.usenix.org/legacy/events/vee05/full_papers/p153-...