1

I read the following sentence from a course note.

JIT stands for "Just-In-Time", which means that a particular piece of code will be translated from CIL to binary code just before it is executed for the first time.

When we compile our code in C# (among others .NET languages), it will be compiled to MSIL which is permanently saved to disk. If we then execute the MSIL for the first time, JIT translates it to machine-specific binary code.

Question: As the translation to the machine-specific binary code by JIT is only done once, does it mean that the machine-specific binary code is permanently saved to disk as well? If yes, where can we find the file of this machine-specific binary code?

Second Person Shooter
  • 14,188
  • 21
  • 90
  • 165
  • 1
    FYI, similar question: [Where is the .NET JIT-compiled code cached?](https://stackoverflow.com/questions/3295622/where-is-the-net-jit-compiled-code-cached) – Wyck Jul 12 '22 at 18:41
  • 1
    Side note: you may want to find a place where you got "As the translation to the machine-specific binary code by JIT *is only done once*" idea from... – Alexei Levenkov Jul 12 '22 at 18:59

0 Answers0