CLR in ASP.NET

 What is CLR (Common Language Runtime) ?
ASP.NET has various components, one of them is CLR

*Machine code is executed by the CPU
*CLR takes Metadata(about language) along with IL code as input
*IL code is stored in DLL files
    •  CLR is the basic and Virtual Machine component of the .NET Framework
    • It is the runtime environment in the .NET Framework
    • Responsible for loading and executing the Intermediate Language code that is obtained after compiling code written in various .NET programming languages including c#, VB.NET, F#
    • When a C# program is compiled, the resulting executable code is in an intermediate language called Common Intermediate Language (CIL) or Microsoft Intermediate Language (MSIL). This code is not machine-specific, and it can run on any platform that has the CLR installed. When the CIL code is executed, the CLR compiles it into machine code that can be executed by the processor
    • The CLR provides many services including memory management, type safety, security, and exception handling
    • It also provides Just-In-Time (JIT) compilation, which compiles the CIL code into machine code on the fly as the program runs, optimizing performance
    • Supports memory management with the help of a Garbage Collector
    • Provides language, platform and architecture independence
    • Programmer has no need to think about memory management, Garbage collection etc. and security issues as CLR handles it all
    • It is optimised for modern hardware

    Comments