How to translate python into C
Johnny Lee
johnnyandfiona at hotmail.com
Fri Oct 28 06:03:31 EDT 2005
Szabolcs Nagy wrote:
> python creates bytecode (like java classes)
>
>
> you cannot translate python directly to c or machine code, but there
> are some projects you probably want to look into
>
>
> Pypy is a python implemetation in python and it can be used to
> translate a python scrip to c or llvm code. (large project, work in
> progress)
> http://codespeak.net/pypy/dist/pypy/doc/news.html
>
>
> Shedskin translates python code to c++ (not all language features
> supported)
> http://shed-skin.blogspot.com/
>
>
> Pyrex is a nice language where you can use python and c like code and
> it translates into c code. (it is useful for creating fast python
> extension modules or a python wrapper around an existing c library)
> http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Thanks, Szabolcs. In fact, I want to reproduce a crush on cygwin. I
used a session of python code to produce the crush, and want to
translate it into C and reproduce it. Is the tools provided by you help
with these issues? Of coz, I'll try them first. :)
Regards,
Johnny
More information about the Python-list
mailing list