Does the .NET CLR JIT compile every method, every time?

前端 未结 4 944
广开言路
广开言路 2020-12-01 01:25

I know that Java\'s HotSpot JIT will sometimes skip JIT compiling a method if it expects the overhead of compilation to be lower than the overhead of running the method in i

4条回答
  •  既然无缘
    2020-12-01 02:07

    It will be nice to see some trace-based JITs in the future for devices with low memory. It would mainly interpret, find hot spots, and convert those into assembler and cache those. I think this is what Google does with their Android JIT and Microsoft Research has a research project ongoing for trace-based JIT.

    I found an article, SPUR: A Trace-Based JIT Compiler for CIL.. Maybe some of this will make it into the CLR one day?

提交回复
热议问题