Is the CLR a virtual machine?

后端 未结 7 1521
闹比i
闹比i 2020-11-30 19:15

I read a book which referred to the .net CLR as a virtual machine? Can anyone justify this? What is the reason we need the concept of virtual machines on so

相关标签:
7条回答
  • 2020-11-30 20:00

    The advantage of the CLR is the freedom to write code in whatever programming language the developer chooses, since the code will be compiled down to CLR before being interpreted into native calls. The .NET framework uses this JIT compilation to treat everything uniformly and output programs which work for the platform being deployed on, which is absent from compiled languages.

    0 讨论(0)
提交回复
热议问题