Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How's Roslyn C# compiler bootstrapped?

I've started reading about "Roslyn" the new C# compiler and was wondering how was the Roslyn compiler compiled?
I understand that boostrapping is needed in order to have "self hosting compiler", and I wondered how was the Roslyn compiler "bootstrapped"?

like image 935
Amittai Shapira Avatar asked Apr 14 '15 11:04

Amittai Shapira


1 Answers

Bootstrapping is only a problem if there isn't already an existing implementation of the language. In this case there was, so it's easy.

  1. Compile the first version of Roslyn using the existing C# compiler
  2. Then re-compile it using the freshly compiled Roslyn build.
  3. Done.
like image 177
sepp2k Avatar answered Oct 26 '22 19:10

sepp2k