[Mono-list] What info output file(CIL) has?

Gaurav Vaish gaurav.vaish@amsoft.net
Wed, 18 Sep 2002 14:31:48 +0530


> How feasible to convert CIL file into an stand alone
> Executable?
>
> sothat we can directly execute that file without
> interpreter.


    I am afraid it may not be possible on Linux and other UNIX clones.

    The linux executables have absolutely different headers (keyword: ELF)
while the compiled libraries or even executables (for windows) have the
standard MS-DOS headers. These headers are recognized only by the windows
environment while it's all garbage for Linux platforms.

    As such, what you get needs to be interpreted by a runtime environment
(Mono Runtime in this case). It's very similar to the java philosophy.
Infact, the only basis for keeping all those headers is to make it run
directly on Windows-based platforms. For all other cases, these headers are
holy-shit. If you happen to read the specs, you will find several headers
with the comment "Ignore during read". They are good for nothing. Only
conform to the headers that are set in the executables for windows
environment.

HIH

Happy hacking,
Gaurav
http://mastergaurav.virtualave.net/iitk
----------------------------