Native Image Generation

As you know by now, the CLR uses a JIT compilation strategy to turn IL code into instructions executable on the CPU architecture of the machine where the application is running. This has several benefits, including code portability across different architectures. It also simplifies the act of code generation by various front-end language compilers because IL abstracts away from concrete machine aspects such as the use of registers. The JIT compiler takes on the burden of analyzing the IL code to turn it into efficient processor instructions.

Note: Dumping IL and JIT-Generated Code

Curious readers might wonder what processor assembly code generated by the JIT for a given method looks like. Using the SOS debugger extension, ...

Get C# 5.0 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.