[pypy-dev] C interpreter written in Python, and running CPython on top of PyPy

Stefan Behnel stefan_ml at behnel.de
Fri Jan 6 18:57:51 CET 2012


Armin Steinhoff, 06.01.2012 17:25:
> A better aproach would be to bind the TCC library ( libtcc ->
> http://bellard.org/tcc/tcc-doc.html#SEC22 ) to PyPy.
> This library allows to compile on the fly and creates x86 executable code
> in memory space ... no link actions, just call it with a library call.

... except that it doesn't support the full C standard, so it won't compile 
all existing code, at least not correctly, from my experience. And it only 
works on the x86 (32/64bit) architecture. It also (obviously) won't 
generate as efficient code as gcc or icc would. So you won't gain as much 
as you might think.

Stefan



More information about the pypy-dev mailing list