translating Python to Assembler

Chris Mellon arkanes at gmail.com
Thu Jan 24 18:26:59 CET 2008


On Jan 24, 2008 9:14 AM, Bjoern Schliessmann
<usenet-mail-0306.20.chr0n0ss at spamgourmet.com> wrote:
> Tim Roberts wrote:
> > Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com>
>
> >> So, how do processors execute Python scripts? :)
> >
> > Is that a rhetorical question?
>
> A little bit.
>
> > 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. But never mind, it depends on how
> you define "compile" in the end.
>

This is true if and only if you would agree that Powerpoint
presentations, Word documents, and PNG images are likewise compiled to
machine code.



More information about the Python-list mailing list