[Mono-list] What info output file(CIL) has?
Peter Kahle
pkahle@pobox.com
Thu, 19 Sep 2002 13:54:21 -0500
On Thu, Sep 19, 2002 at 07:07:03AM -0700, mani gandan wrote:
>
> >But as far as I could guess, you still require mcs to execute it (mcs
> .>/foo.exe).
> >IMO, what Mani means is that instead of calling "mcs ./foo.exe", I
> >should be able to just call "./foo.exe" and execute it on Linux. Is that
> >true, Mani?
> You are exactly correct........
I'm not sure this is exactly what you want, but it's possible, at least
in theory, to use the binfmt kernel module in linux to know that, when
you call ./foo.exe, where foo.exe is a CIL file, it should actually run
it as if you'd typed 'mono ./foo.exe' This doesn't require any
conversion of the actual executable, only a file telling the module
what to look for in the executable, and what executable to use to run
it (kinda like the #! line in a script) On my debian system, the files
are in /usr/share/binfmts, but that's probably different on different
distros. Oh, and it looks like there might be conflict between mono and
wine as to how to handle windows executables.
Hope that helps,
P
--
Those who would give up essential Liberty to purchase a little temporary
safety, deserve neither Liberty nor safety.
-- Ben Franklin
|| Peter M Kahle Jr || PGP Public Key on Keyservers ||
|| pkahle@pobox.com || http://www.kahlilia.org/~pkahle/ ||
##===============================##======================================##