[Mono-list] 64bit gmcs/mcs in SLES/openSuSE rpms?

Michael Hutchinson m.j.hutchinson at gmail.com
Tue Apr 28 12:03:49 EDT 2009


On Tue, Apr 28, 2009 at 6:09 AM, Chris Howie <cdhowie at gmail.com> wrote:
> On Tue, Apr 28, 2009 at 5:08 AM, David Henderson <dnadavewa at yahoo.com> wrote:
>> 1) I used file to determine that the .exe files were 32bit.  It is entirely possible that file returns 32bit for all .exe, rather than examine the file.
>
> OR... it's entirely possible that what I said is the case: executable
> CIL assemblies are tagged as 32-bit so they can be run on 32-bit
> systems.  IL is platform-independent; if C# compilers tagged
> executables 64-bit then they would not run on 32-bit systems, and what
> sense would that make?

You're partially correct; they're PE32 files, not PE32+ (64-bit).
However, they *don't* have the 32-bit "flag" set. This means .NET
treats them as pure IL ("AnyCPU").

So yes, they're "32-bit", but not from the CLR's point of view.

More info at http://blogs.msdn.com/gauravseth/archive/2006/03/07/545104.aspx

> It may be a good idea to read replies carefully instead of assuming
> incorrect information.  :)

Quite.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-list mailing list