Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.NET 的虚拟机是编译 CIL 字节码(然后在最低级别执行代码 - CPU 汇编程序),还是解释器(读取以下指令并执行它们)?
.NET 的虚拟机是否编译 CIL 字节码(然后在最低级别执行代码 - CPU 汇编程序)
是的,它是 CLR 的一个组件,称为JIT(即时编译),它将中间语言代码(由编程语言的编译器发出)转换为机器代码。
没有像 Ruby、PHP、Python 等动态语言那样的解释器。
更新:
正如@Nick Craver 在评论中指出的那样,在 .Net 4 中添加DLR带来了在 CLR 中使用动态语言概念的可能性。