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


Top 5 Contributors of the Month
Sandeep Singh
Mayuri
stevemarkayden
kumarfurima
Preethi

  

CLR (Common Language Runtime)

   
 
     


Introduction :

CLR: Common Language Runtime is the heart of .NET Framework used to manage the program written in .NET Framework compatible language (Eg. C#, Vb.NET, J# etc.). In other words, CLR is Execution Engine which executes the program for .NET Framework.

CLR: Common Language Runtime is the heart of .NET Framework used to manage the program written in .NET Framework compatible language (Eg. C#, Vb.NET, J# etc.). In other words,  CLR is Execution Engine which executes the program for .NET Framework.

Let's see some other definitions of CLR:

The common language runtime is the execution engine for .NET Framework applications.

It provides a number of services, including the following:

  • Code management (loading and execution)
  • Application memory isolation
  • Verification of type safety
  • Conversion of IL to native code
  • Access to metadata (enhanced type information)
  • Managing memory for managed objects
  • Enforcement of code access security
  • Exception handling, including cross-language exceptions
  • Interoperation between managed code, COM objects, and pre-existing DLLs (unmanaged code and data)
  • Automation of object layout
  • Support for developer services (profiling, debugging, and so on) 
    (Source MSDN)

 

The Common Language Runtime (CLR) is the virtual machine component of Microsoft''s .NET initiative. It is Microsoft''s implementation of the Common Language Infrastructure (CLI) standard, which defines an execution environment for program code. The CLR runs a form of byte code called the Common Intermediate Language (CIL, previously known as MSIL (Microsoft Intermediate Language)
(source Wikipedia).

 

How CLR Works?

When we write a program in .NET compatible language, then the compiler for C#(csc) or VB.NET(vbc) compiles the code in IL (Intermediate Language) or MSIL(Microsoft Intermediate Language) and then IL will be the input of CLR's component Just In Time compiler to produce machine independent code.

Apart from the above CLR is also responsible for:

Memory management

Thread management

Exception handling

Garbage collection

Security


(Source Wikipedia)

 

Other Tutorials in the same Category:
      
  • .NET Framework      
  • CLR (Common Language Runtime)      
  • CTS (Common Type System)      
  • MSIL or IL (Microsoft Intermediate Language)

  •  
         
     
    Return to Main Index Page


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