C# 编译器是用 C++ 编写的吗?

发布于 2024-07-15 00:20:26 字数 22 浏览 7 评论 0原文

C#编译器是用C++编写的吗?

Was C# compiler written in C++?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

情痴 2024-07-22 00:20:26

是的,它是——作为 CLR 的大多数。 如果您想了解 CLR 和/或编译器的内部结构,我强烈推荐 Microsoft 的共享源 CLI(又名 Rotor):

但是,实际上有一个用 C# 编写的编译器。 我相信 Mono 就是这样写的。 下载Mono 源并亲自查找。

Yes it was - as majority of CLR. If you want to see the internals of CLR and/or compilers I would strongly recommend Shared Source CLI from Microsoft (aka Rotor):

But, there is actually a compiler written in C#. I believe that Mono is written that way. Download Mono sources and find out for yourself.

一片旧的回忆 2024-07-22 00:20:26

Microsoft 编写了一个新的(截至 2011 年末)C# 和 VB 编译器,名为 Roslyn,它分别用C#和VB.NET编写。 项目页面位于此处。 Roslyn 编译器被编写为一个公开丰富公共 API 的库。 有一篇新闻文章 此处来自 InfoWorld 的相关信息。

更新:
自 2014 年 4 月 3 日起,Roslyn 在 Apache License 2.0 下开源。

There is a new (as of late 2011) C# and VB compiler written by Microsoft called Roslyn which is written in C# and VB.NET respectively. Project page is here. The Roslyn compiler is written as a library that exposes a rich public API. There is a news article here about it from InfoWorld.

UPDATE:
As of April 3, 2014, Roslyn is open source under the Apache License 2.0.

无所谓啦 2024-07-22 00:20:26

是的,但有计划用 C# 编写一个 C# 编译器,我相信这已在 此播客

Yes, but there are plans to write a C# compiler in C#, which I believe was discussed in this podcast.

沉溺在你眼里的海 2024-07-22 00:20:26

是的。

Mono C# 编译器是用 C# 编写的。

Yes.

The Mono C# compiler is written in C#.

谜泪 2024-07-22 00:20:26

.NET 框架是用 Simple Managed C (SMC) 编写的

历史

在 .NET Framework 的开发过程中,类库最初是使用名为 Simple Managed C (SMC) 的托管代码编译器系统编写的。 1999 年 1 月,Anders Hejlsberg 组建了一个团队来构建当时名为Cool,代表“类 C 面向对象语言”。[16] 微软曾考虑保留“Cool”作为该语言的最终名称,但由于商标原因选择不这样做。 当 .NET 项目在 2000 年 7 月的专业开发人员大会上公开宣布时,该语言已更名为 C#,并且类库和 ASP.NET 运行时已移植到 C#。

来自:http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29

The .NET framework was written in Simple Managed C (SMC)

History

During the development of the .NET Framework, the class libraries were originally written using a managed code compiler system called Simple Managed C (SMC).In January 1999, Anders Hejlsberg formed a team to build a new language at the time called Cool, which stood for "C-like Object Oriented Language".[16] Microsoft had considered keeping the name "Cool" as the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was publicly announced at the July 2000 Professional Developers Conference, the language had been renamed C#, and the class libraries and ASP.NET runtime had been ported to C#.

From: http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文