On Tue, Mar 29, 2011 at 12:16 AM, harrismh777 <harrismh...@charter.net> wrote: > Chris Rebert wrote: >> >> Yes. py2exe is a tool which generates such Windows executables: >> http://www.py2exe.org/ > > Interesting... but it can't possibly be creating .exe files (compiling)... I > don't buy it... it has to be reproducing the byte code interpreter in the > code segment and the byte code in the data segment... so that each .exe file > created by said process is actually loading an entire copy of at least the > byte code interpreter with each program "compiled" ... can't be very > efficient?? > > ... just a question?
If you can figure out a good way to compile a language like Python, you'll be very rich. Yes, it is running the interpreter and then running the bytecode on the interpreter. It's the same way Java and .NET work. -- http://mail.python.org/mailman/listinfo/python-list