compiling to python byte codes
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Fri Sep 3 01:03:37 EDT 2004
Maurice LING write:
> I dont't quite get this right. Since x86/PPC uses register operations,
> why do virtual machines, like python's and java's, are designed as
> stack machines? Why not just stick to registers?
Because it's much easier to code a stack-based VM, and also much easier
to produce bytecode for a stack-based VM.
Once you bring registers into the picture, the lovely, straightforward
stack gets turned into a mess of which registers should be used when,
etc.
Tim Delaney
More information about the Python-list
mailing list