Re: Compile C program -> .pyc file

2005-10-21 Thread Grant Edwards
On 2005-10-21, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > >> Is there a way to compile a C program into a .pyc file that >> has the same behavior as the compiled C program? > > unless you find a C->Python compiler, no. Or a C->Python-byte-code compiler. > PYC files contain Python bytecode, C comp

Re: Compile C program -> .pyc file

2005-10-21 Thread Fredrik Lundh
Steve Holden wrote: > Here's a start: > > http://codespeak.net/pipermail/pypy-dev/2003q1/000198.html if anyone could turn ideas that only exist in Christian's brain into working systems, the world would look a lot different. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile C program -> .pyc file

2005-10-21 Thread Ernesto
Fredrik Lundh wrote: > "Ernesto" wrote: > > > Is there a way to compile a C program into a .pyc file that has the > > same behavior as the compiled C program? > > unless you find a C->Python compiler, no. PYC files contain Python bytecode, > C compilers usually generate native code for a given ma

Re: Compile C program -> .pyc file

2005-10-21 Thread Fredrik Lundh
"Ernesto" wrote: > Is there a way to compile a C program into a .pyc file that has the > same behavior as the compiled C program? unless you find a C->Python compiler, no. PYC files contain Python bytecode, C compilers usually generate native code for a given machine platform. -- http://m

Re: Compile C program -> .pyc file

2005-10-21 Thread Steve Holden
Ernesto wrote: > Is there a way to compile a C program into a .pyc file that has the > same behavior as the compiled C program? > > Thanks! > Here's a start: http://codespeak.net/pipermail/pypy-dev/2003q1/000198.html regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holde

Compile C program -> .pyc file

2005-10-21 Thread Ernesto
Is there a way to compile a C program into a .pyc file that has the same behavior as the compiled C program? Thanks! -- http://mail.python.org/mailman/listinfo/python-list