Click here to Skip to main content
12,753,195 members (39,439 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


8 bookmarked
Posted 1 Jun 2014

What is IL Code, CLR, CTS, CLS & JIT?

, 2 Jun 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
What is IL code, CLR, CTS, CLS & JIT

IL/MSIL/CIL - IL code is a CPU independent partially compiled code. It’s partially compiled because we do not know in what kind of environment .NET code will run and on runtime IL Code will compile to machine code using the environmental properties (CPU, OS, machine configuration, etc).

ILDASM - This is a tool provided by Visual Studio to view IL code. To run ILDASM, we have to select option “Visual Studio Command Prompt” from “Visual Studio Tools” and type ildasm. It will open the ildasm tool where we can open any exe/dll.ildasm tool read the assembly by reflection and it is showing us various properties, methods which our assembly has. Here, we can see IL code of any method/property by clicking on that.

CLR - CLR is the heart of the .NET framework and it does 4 primary important things:

  1. Garbage collection
  2. CAS (Code Access Security)
  3. CV (Code Verification)
  4. IL to Native translation

CTS - CTS ensures that data types defined in two different languages get compiled to a common data type. This is useful because there may be situations when we want code in one language to be called in other language.

We can see a practical demonstration of CTS by creating the same application in C# and VB.NET and then compare the IL code of both applications. Here, the datatype of both IL code is same.

CLS - CLS is a subset of CTS. CLS is a set of rules or guidelines. When any programming language adheres to these set of rules, it can be consumed by any .NET language.CTS.

JIT - JIT compiles the IL code to Machine code just before execution and then saves this transaction in memory.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Akash Ashok Jain
Software Developer (Senior)
India India
I am "Akash Jain" working in IT Industry from last 6 years. From the beginning of my career I worked with C# for both windows and web application. In my short career I worked for 2 Major ERP Applications, e-commerce applications, CMS based applications and also few static websites.

I am a MCP for web application for ASP.NET 4.0. I have also done PMP training as project management is one of my interest area.

You may also be interested in...


Comments and Discussions

GeneralMy vote of 1 Pin
Lodovico Guicciardini18-Oct-16 0:10
memberLodovico Guicciardini18-Oct-16 0:10 
GeneralMy Vote of 1 Pin
Member 845016725-Aug-15 7:33
memberMember 845016725-Aug-15 7:33 
Questionpractical example Pin
Sakthikumars20-Aug-15 21:41
professionalSakthikumars20-Aug-15 21:41 
QuestionIts Good. Pin
Ujjval Shukla5-Jun-15 3:49
memberUjjval Shukla5-Jun-15 3:49 
GeneralMy vote of 5 Pin
Santosh K. Tripathi4-Apr-15 20:09
professionalSantosh K. Tripathi4-Apr-15 20:09 
GeneralMy vote of 5 Pin
Mihai MOGA20-Jul-14 5:48
professionalMihai MOGA20-Jul-14 5:48 
GeneralMy vote of 5 Pin
Omar Gameel Salem17-Jul-14 21:50
memberOmar Gameel Salem17-Jul-14 21:50 
Questionsome good info Pin
BillW3316-Jul-14 12:13
professionalBillW3316-Jul-14 12:13 
QuestionUseful Information Pin
Rohan Vispute3-Jun-14 3:41
memberRohan Vispute3-Jun-14 3:41 
QuestionShort and sweet explanation. Pin
Mukesh Dusane2-Jun-14 22:03
memberMukesh Dusane2-Jun-14 22:03 
GeneralMy vote of 5 Pin
Akash Ashok Jain2-Jun-14 20:33
professionalAkash Ashok Jain2-Jun-14 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 2 Jun 2014
Article Copyright 2014 by Akash Ashok Jain
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid