Porting Python C-Code to Python
I'm reading the list for some time now ... and although I understand what you want to achieve I may not really understand what is involved in reaching that goal ... But lately I read about porting that C-Code to Python and I have a question/suggestion that may be a serious candidate for the most stupid idea :) Shouldn't it be possible to write a (small) backend to gcc to generate python-bytecode? So you can translate the C-Part of Python (or any other C-Code :) to python-bytecode and run it. That should be easier then all the other suggestions and allows you to replace the C-Code Module for Module ... --tf
I've heard that this is not easy at all. iirc gcc can only really make code for register-based systems. the java back end is apparently a big hack that basically sidesteps all the gcc internals. On Wednesday, January 22, 2003, at 03:33 PM, Thomas Fanslau wrote:
I'm reading the list for some time now ... and although I understand what you want to achieve I may not really understand what is involved in reaching that goal ...
But lately I read about porting that C-Code to Python and I have a question/suggestion that may be a serious candidate for the most stupid idea :)
Shouldn't it be possible to write a (small) backend to gcc to generate python-bytecode? So you can translate the C-Part of Python (or any other C-Code :) to python-bytecode and run it. That should be easier then all the other suggestions and allows you to replace the C-Code Module for Module ...
--tf
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
-- Nathan Heagy phone:306.653.4747 fax:306.653.4774 http://www.zu.com
participants (2)
-
Nathan Heagy -
Thomas Fanslau