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

Gaurav Vaish gaurav.vaish@amsoft.net
Wed, 18 Sep 2002 17:49:35 +0530


> HI,
>
> I want to make CIL file  to object file(ELF format) on
> linux paltform.Sothat i can directly exexute it on
> linux platform without interpreter.
>
> So i want to write kind of an translator which
> converts CIL to ELF.
>
> Should it be possible?
> Any idea?


    In theory, yes. But on a second thought quite difficult. I am not an
expert of ELF format, though what I can say is that you will then need to
convert all of the following to the ELF format:

    * The required assemblies (System.dll -> System.so, System.Web.dll ->
System_Web.so etc).
    * The executable (MyApp.exe).

    Besides this, all of the above will need to be fed with the linking
information. And then - whenever you refer to a native call (like may be
while implementing StreatReader.Read(...)) you will need to provide the
linking information allowing it to point to the necessary shared object and
the entry point.

    I am not really sure of how and how easily can it be done. Quite naive
in ELF format. ;-)


Happy hacking,
Gaurav
http://mastergaurav.virtualave.net/iitk
----------------------------
>
> Regards
> manigandan
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
>