[IronPython] Compilation to IL

Curt Hagenlocher curt at hagenlocher.org
Fri Aug 13 17:30:37 CEST 2004

"Jim Hugunin" <jim at ironpython.com> writes:

> To see the state-of-the-art today, make a very simple Python script,
> like hello.py (with 'print "hello world" in it).  Then run it by
> passing it to IronPythonConsole.  After you run it, there should be
> a file "__main__.exe" in the appropriate directory.  You should be
> able to run this file now as a stand-alone executable.

Even more interesting: if you have "hello.py" and "oil.py", and 
hello.py contains the statement "import oil", then when you pass
hello.py to IronPythonConsole, you'll get not only "__main__.exe"
but also "oil.exe".  Running Reflector on these output files is
not only a worthwhile exercise, it may also be an easier way to
start learning how IronPython works than reading the actual source

Curt Hagenlocher
curt at hagenlocher.org

More information about the Ironpython-users mailing list