(IL) Intermediate Language, also Known as (CIL) Comman Intermediate Language, or popularly the (MSIL) Microsoft Intermediate Language, is the Core of the .NET Framework. All .NET source codes written in any .net supportive language (C#,VB.net etc), when compiled are converted to MSIL. This MSIL, when installed or at the Runtime, gets converted to machine code. The Runtime convertion of MSIL code to the machine code is handled by a component called as the Just In Time (JIT) Compiler.
|
| Author: sanmu 05 Aug 2008 | Member Level: Bronze Points : 1 |
MSIL :
Microsoft Intermediate Language or Intermediate Language or common Intermediate Language
it converts the source code into intermediate language and then machine code by JIT Compiler .
|
| Author: RamyaNaidu 07 Aug 2008 | Member Level: Silver Points : 2 |
Microsoft Intermediate Language (MSIL) is a platform independent language that gets compiled into platform dependent executable file or dynamic link library. It means .NET compiler can generate code written using any supported languages and finally convert it to the required machine code depending on the target machine.
To get some clarity in this language we need to write some code. In this tutorial we?ll use a very simple piece of source code in C# .Net. Now we need to compile this code using csc command in Microsoft .NET on the command line. To do this, please type next string: csc ILSample.cs. After it compiler will create an executable file named ILSample.exe.
After this type the command called ILDasm. It will open application called Intermediate Language Disassembler. In file menu choose open and find our executable file.This application opens our assembly showing all structural units viz., classes, methods, data fields and all global and local application data. Now if you click on the method it shows code in intermediate language. This code is most like at language with independent set of instructions.
|