translating Python to Assembler

Grant Edwards grante at visi.com
Mon Jan 28 15:49:35 EST 2008


On 2008-01-28, Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com> wrote:
> Grant Edwards wrote:
>> No, it doesn't output corresponding machine code (that's what
>> some Java JIT implementations do, but I'm not aware of any
>> Python implementations that do that).  The virtual machine
>> interpreter just does the action specified by the bytecode.
>
> By "outputs corresponding machine code" I meant "feeds corresponding
> machine code to the CPU" to make the analogy clearer. Which can
> mean a function call.

OK, but I think you're reaching a little. :) It's pretty hard
for me to think of a program as something that's "feeding
machine code to the CPU".

In my mind, the VM is a program that's reading data from one
source (the bytecode files) and performing operations on a
second set of data (in-memory structures representing Python
objects) based on what is found in that first set of data.

-- 
Grant Edwards                   grante             Yow! Is it clean in other
                                  at               dimensions?
                               visi.com            



More information about the Python-list mailing list