[Mono-dev] Mixed Mode Assemblies
monodanmorg at yahoo.com
Fri Jul 8 12:22:07 EDT 2011
Well, since Rodrigo said something crazy - like implementing an PE loader on Linux.
What about the opposite (and even more crazy) - modify Mono/Mcs to create an ELF executable or library. Of course, you would have to modify Mono to load the ELF executable or library too.
For me to use C++ in my legacy apps, I had to create a library to wrap the C++ functionality, but export my functions as extern "C" so I could platform invoke them from C#.
From: Alex Corrado <alexander.corrado at gmail.com>
To: Rodrigo Kumpera <kumpera at gmail.com>
Cc: mono-devel-list at lists.ximian.com
Sent: Thursday, July 7, 2011 5:44 PM
Subject: Re: [Mono-dev] Mixed Mode Assemblies
On Thu, Jul 7, 2011 at 5:32 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:
> On Thu, Jul 7, 2011 at 5:34 PM, Jonathan Pryor <jonpryor at vt.edu> wrote:
>> But try using dlopen(3) on Linux to load an assembly, and dlopen(3) will
>> (rightfully) fail -- Linux wants ELF, not PE. There's a rather fundamental
>> file format difference here.
> Well, the fix here is quite straight forward - just implement a PE/COFF
> loader for non windows platforms.
Already been done: winehq.org. IMHO not the most elegant of solutions,
though I am a bit biased toward the mono C++ interop (Cxxi) that
Jonathan mentioned :)
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list