CLR vs JIT

前端 未结 7 1848

What is the difference between the JIT compiler and CLR? If you compile your code to il and CLR runs that code then what is the JIT doing? How has JIT compilation changed wi

7条回答
  •  离开以前
    2020-12-04 06:31

    I know the thread is pretty old, but I thought I might put in the picture that made me understand JIT. It's from the excellent book CLR via C# by Jeffrey Ritcher. In the picture, the metadata he is talking about is the metadata emitted in the assembly header where all information about types in the assembly is stored:

    JIT image from CLR via C#

提交回复
热议问题