문제

I'm a C# beginner,
Is the machine code generated by the JIT in run time is same for the two different systems having exactly same configuration?

도움이 되었습니까?

해결책

I've found a nice article about your question. It's rather long, so I've extracted the most essential parts:

  • The compilation can be optimized to the targeted CPU and the operating system model where the application runs. For example JIT can choose SSE2 CPU instructions when it detects that the CPU supports them.
  • The system is able to collect statistics about how the program is actually running in the environment it is in, and it can rearrange and recompile for optimum performance.

So indeed, the disassembly may differ not only across platforms, but also across runs on the same system.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top