Home All Groups Group Topic Archive Search About

Re: Is C# written in C++ underneath?

Author
5 Nov 2007 11:37 PM
Alan T
Why the MS C# compiler was NOT written in C#?

Show quote
> The Microsoft C# compiler was written in C++.
>
> The Mono
>   http://www.mono-project.com/CSharp_Compiler
> C# compiler was written in C# itself.

Author
5 Nov 2007 11:52 PM
Peter Duniho
On 2007-11-05 15:37:33 -0800, "Alan T" <alanNOSPAMpltse@yahoo.com.au> said:

> Why the MS C# compiler was NOT written in C#?

Assuming Microsoft's C# compiler was the first C# compiler to exist,
what compiler would they have used to compile a C# version of the C#
compiler?
Author
6 Nov 2007 1:33 AM
Andrew Faust
Reminds me of an interview I once read with Bjarne Stroustrup where he
mentioned he wrote the first C++ compiler in C++. He added a bunch of
macros in C to take C++ code and transform it to C. He then wrote the
compiler in C++, used the macros to turn it to C, compiled it and then used
the resulting compiler to compile the C++.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


"Peter Duniho" <NpOeStPe***@NnOwSlPiAnMk.com> wrote in message
news:2007110515523664440-NpOeStPeAdM@NnOwSlPiAnMkcom...
Show quote
> On 2007-11-05 15:37:33 -0800, "Alan T" <alanNOSPAMpltse@yahoo.com.au>
> said:
>
>> Why the MS C# compiler was NOT written in C#?
>
> Assuming Microsoft's C# compiler was the first C# compiler to exist, what
> compiler would they have used to compile a C# version of the C# compiler?
>

AddThis Social Bookmark Button