Professional Documents
Culture Documents
MSIL and It's Advantages (BCA Sem-5, Paper - 503)
MSIL and It's Advantages (BCA Sem-5, Paper - 503)
A .NET programming language (C#, VB, J# etc.) does not compile into executable code;
instead it compiles into an intermediate code called Microsoft Intermediate Language
(MSIL). As a programmer one need not worry about the syntax of MSIL - since our
source code in automatically converted to MSIL. The MSIL code is then send to the CLR
(Common Language Runtime) that converts the code to machine language, which is, then
run on the host machine. MSIL is similar to Java Byte code. MSIL is the CPU-
independent instruction set into which .NET Framework programs are compiled. It
contains instructions <br>for loading, storing, initializing, and calling methods on
objects. Combined with metadata and the common type system, MSIL allows for true
cross- language integration Prior to execution, MSIL is converted to machine code.
It is also called Intermediate Language (IL) or Common Intermediate Language (CIL).
During the compile time, the compiler convert the source code into Microsoft
Intermediate Language (MSIL) .Microsoft Intermediate Language (MSIL) is a CPU-
independent set of instructions that can be efficiently converted to the native code.
During the runtime the Common Language Runtime (CLR)'s Just In Time (JIT) compiler
converts the Microsoft Intermediate Language (MSIL) code into native code to the
Operating System.
Advantages -