在语言C#编译器写的?

编程入门 行业动态 更新时间:2024-10-13 10:23:14
本文介绍了在语言C#编译器写的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我看了看源代码在 referencesource.microsoft/ ,似乎所有的源代码在C#。

I looked at the source code at referencesource.microsoft/, and it appears all the source code is in C#.

我也看了看源代码,新的C#编译器平台(的罗斯林),它也是在C#。这怎么可能?是C#语言编译器C#编写的?还是我失去了一些东西明显?如果C#编译器是用C#编写,然后它是如何工作的?

I also looked at the source code for the new C# compiler platform (Roslyn), and it is also in C#. How is that possible? Is C# language compiler written in C#? Or am I missing something obvious? If C# compiler is written in C# then how does it work?

推荐答案

原来的C#编译器没有写在C#中,在C和C ++。新的罗斯林编译器C#语言编写的,但最初是与旧的编译器编译。一旦新的编译器做,它能够编译它自己的源代码:这就是所谓的引导。

The original C# compiler wasn't written in C#, it was in C and C++. The new Roslyn compiler was written in C#, but was initially compiled with the old compiler. Once the new compiler was done, it was able to compile its own source code: this is called bootstrapping.

更多推荐

在语言C#编译器写的?

本文发布于:2023-11-07 00:25:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565055.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   语言

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!