gpt4 book ai didi

.net - .NET VM 是编译器还是解释器?

转载 作者:行者123 更新时间:2023-12-02 08:58:11 24 4
gpt4 key购买 nike

.NET 的虚拟机是编译 CIL 字节码(然后在最低级别执行代码 - CPU 汇编程序),还是解释器(读取以下指令并执行它们)?

最佳答案

Does the .NET's Virtual Machine compiles the CIL bytecode (and then execute the code at the lowest level - CPU assembler)

是的,它是 CLR 的一个组件,名为 JIT (即时编译)将中间语言代码(由编程语言的编译器发出)转换为机器代码。

没有像 Ruby、PHP、Python 等动态语言那样的解释器。


更新:

正如@Nick Craver 在添加 DLR 后的评论中指出的那样.Net 4 带来了在 CLR 中使用动态语言概念的可能性。

关于.net - .NET VM 是编译器还是解释器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3275360/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com