Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top