Python compilation ??
Cathy Murphy
cathy at nachofoto.com
Tue Jul 3 02:58:31 EDT 2007
Ahh!! lots of thoughts!!
Thanks guys!!
--
Cathy
www.nachofoto.com
On 7/2/07, John Nagle <nagle at animats.com> wrote:
>
> Evan Klitzke wrote:
> > On 7/2/07, Cathy Murphy <cathy at nachofoto.com> wrote:
> >
> >> Is python a compiler language or interpreted language. If it is
> >> interpreter
> >> , then why do we have to compile it?
> >
> >
> > It's an interpreted language. It is compiled into bytecode (not
> > machine code) the first time a script is run to speed up subsequent
> > executions of a script.
>
> CPython compiles to an intermediate form, rather than
> all the way to machine code, and executes the intermediate form,
> which is basically a tree, with an interpreter written in C.
>
> ShedSkin Python compiles to C++, then all the way to machine code.
> Some CPython features have to be disallowed, but there's a huge
> performance gain.
>
> Jython compiles to Java byte code, which is then compiled to
> machine code by a just-in-time compiler.
>
> Iron Python compiles to Microsoft's byte code as used by their
> ".NET" common language runtime. This is then compiled to machine
> code by a just-in-time compiler.
>
> John Nagle
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070702/348f7ae7/attachment.html>
More information about the Python-list
mailing list