Bootstrapping a compiler: why?

前端 未结 11 1456
花落未央
花落未央 2020-12-01 02:55

I understand how a language can bootstrap itself, but I haven\'t been able to find much reference on why you should consider bootstrapping.

The int

11条回答
  •  眼角桃花
    2020-12-01 03:35

    Bootstrapping has also another advantage: If your language is nice, you might save time by writing your compiler in than in let's say C. For instance, the C# compiler was written in C++, but now they are rewriting it in C#, which allows them (among other things) to use the threading framework from the CLR instead of rolling their own in C++ (and to follow the lead of the Mono guys as well, marketing wise, Mono was in a better position by being able to say our C# compiler is actually written in C#).

提交回复
热议问题