Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top