For example, in my series of blog posts I created a GDATA reader with IronPython. You can create a executable from using the following command:
mono ipy.exe -X:SaveAssemblies gdatareader.py
This creates a gdatareader.exe. You will still need the gdata, IronPython and IronMath dll's but there is no longer the delay of IronPython loading the Python program and converting it to IL. To convert it to native x86 code, run the following command:
mono --aot gdatareader.exe
This creates a gdatareader.exe.so which contains the native x86 code. The gdatareader.exe is still used to start the program but the JIT compiler is not required, so some more CPU cycles are saved.
No comments:
Post a Comment