.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Articles >> .Net Framework >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Common Language Runtime(CLR)

Posted By:Abhisek Panda       Posted Date: December 24, 2009    Points: 25    Category: .Net Framework    URL: http://www.dotnetspark.com  

Common Language Runtime(CLR):-


       A runtime is an environment in which the program is executed,e.g, to run a VB program we need a VB runtime environment(msvbm.dll). Similarly to run VC++ or C# applications we need there respective runtimes.

        When different languages have different runtime it is a difficult task for the programmer. To avoid this problem .NET introduces a common language runtime for all the .NET supporting languages.

        Common Language Runtime(CLR) provides a runtime environment that manages the execution of .NET framework applications.

        The code that targets the CLR is called as managed code. The CLR is an execution engine for the .NET framework applications and provides a unified environment.

         The CLR is responsible for managing memory applications, starting up, killing threats, and enforces security policies.

          When we write the code in .NET and compile it, it is translated into a set of machine independent instructions called as  IL(Intermediate Language).

          But this IL is not understood by the machine. The linker takes the MSIL(Microsoft Intermediate Language) and converts it into exe or dll format which is again taken by another compiler called as JiT(Just in Time) and convert it into the native code. After that it is executed on the CLR.

Components Of CLR:

Base Class Library Support:- It provides different classes which is compatible for all .NET compatible language.

Thread Support:- It provides classes and interfaces for multiprogramming.

COM Marshaller:- Marshaling to and from COM(Component Object Model).

Type Checker:- It avoids uninitialized variables and other typecasting.

Exception Engine:- It helps in error reporting.

Security Engine:- It provides security to the program and user.

Debug Engine:- It helps in debugging and implement towards execution.

MSIL to Native:- IL is converted to CPU dependent with the help of JiT.

Code Manager:- It manages the code.

Garbage Collector:- It is a program which provides lifetime garbage collection for the object.

Class Loader:- It loads the implemented class for its execution.

 Subscribe to Articles


Further Readings:

Author: Amit Mehra         Company URL: http://www.dotnetspark.com
Posted Date: December 27, 2009

Hello Abhishek,

Simple and Nice explanation...But I was looking something more in detail of CLR components..Hope you will write more in detail about the Component of CLR.

I appreciate your effort..its really helpful. Thanks for sharing...

Author: Abhisek Panda         Company URL: http://www.dotnetspark.com
Posted Date: December 29, 2009

Thanks Amit for your appreciation. I will try to add all the details in near future.

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend