The Runtime Environment of .NET Framework is Called Common Language Runtime. CLR can be considered as Virtual Machine (VM) component of Microsoft’s .NET framework. It manages the execution of Managed Code (.NET Programs). CLR uses a just-in-time (JIT) compiler which converts the compiled code of .NET into Native Code.
Language Compilers (e.g. C#, VB.Net, J#) convert the .NET Program Code to Microsoft Intermediate Language (MSIL) and this is further converted to Native Code by JIT Compiler of CLR.
Role/Features Of CLR
CLR provides many features like it loads and executes the code, manages the memory, converts the MSIL code to native code, and handles the exception.
Here are some major features of CLR:
- Memory Mangement
- Code Access security
- Garbage Collection
- JIT Compilation
- Thread Support
- Debug Engine
- Exception Handling