May 5, 2010

What is MSIL (Microsoft Intermediate Language)?

.NET programs are compiled by the language compilers into assemblies that consist of Microsoft Intermediate Language (MSIL) instructions. Microsoft Intermediate Language (MSIL) is a CPU-independent set of instructions that can be efficiently converted to native code.

MSIL includes instructions for loading, storing, initializing, and calling methods on objects, as well as instructions for arithmetic and logical operations, control flow, direct memory access, exception handling, and other operations.

Before you can run Microsoft intermediate language (MSIL), it must be converted by a .NET Framework just-in-time (JIT) compiler to native code, which is CPU-specific code that runs on the same computer architecture as the JIT compiler.

When you run your program, the MSIL is compiled again, using the Just In Time (JIT) compiler (a process often called Jiting ). The result is machine code, executed by the machine's processor.

No comments:

Post a Comment