Pages

Friday, August 24, 2012

What is Common Language Runtime (CLR)?

CLR is Common Language Runtime and it forms the heart of the .NET framework. The responsibility of CLR is to take care of the code execution of the program. The responsibilities of CLR are,

Code Access Security

CAS grants rights to program depending on the security configuration of the machine. Example, the program has rights to edit or create a new file but the security configuration of machine does not allow the program to delete a file.

Garbage Collection

CLR automatically manages memory. When objects are not referred garbage collection automatically release that memories thus providing efficient memory management.

Code Verification

This ensures proper code execution and type safety while the code runs. It prevents the source code to perform illegal operation such as accessing invalid memory locations etc.

IL( Intermediate language )-to-native translators and optimizer

CLR uses JIT (Just In Time) compiler and compiles the IL code to machine code and then executes.


For more about Asp.Net Page life-cycle, click on Explain ASP.Net Page life-cycle events

No comments:

Post a Comment