[Mono-list] Re: Bootstrapping

Miguel de Icaza miguel@ximian.com
Thu, 08 Jul 2004 13:03:26 -0400

> If the original Mono mcs C# compiler was written and compiled on a Windows
> machine, how did it get ported to Linux?  Was there some sort of wine or
> wine-ish runtime used to execute csc on Linux to compile the first mcs?

I guess this explains your confusion.

The code generated in the .NET world is not native x86 code, it is an
intermediate language called CIL which works across many platforms
(provided you have a VM to run it).

See Paolo's post for more details.

But basically the same .exe can be used on Windows and Linux as long as
the compiler is concerned.