translating Python to Assembler

Carl Banks pavlovevidence at gmail.com
Thu Jan 24 18:17:17 CET 2008


On Jan 24, 10:14 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at spamgourmet.com> wrote:
> Tim Roberts wrote:
> > Grant is quite correct; Python scripts (in the canonical CPython)
> > are NOT compiled into assembly language.  Scripts are compiled to
> > an intermediate language.  Processors execute Python scripts when
> > the interpreter, written in a high-level language and compiled to
> > assembly, interprets the intermediate language created by the
> > Python "compiler".
>
> So in the end, the program defined in the Python script _is_
> compiled to the CPU's language.

I would say it's compiled to an intermediate language ("bytecode"),
and then that intermediate language is interpreted.


> But never mind, it depends on how
> you define "compile" in the end.

If you define "compile" as "interpret", yeah.


Calr Banks



More information about the Python-list mailing list