It is common managed environment where all the .net programs run. Supports multiple languages and has garbage collection.
The .net Framework provides runtime environment which runs the code and provides services that make the development process easier. This runtime environment in .NET Framework is called as Common Language Runtime. The CLR site at the very heart of managed code. Common Language Runtime is the generalized multi-language, reflexive execution engine on which code originally written in various languages runs. At a higher level, CLR is simply an engine that takes in Intermediate Language instructions, translated them into machine instructions and executes them.
When compiling to managed code, the compiler translated your source code into Microsoft Intermediate Language , Which is a CPU independent set of instructions can be efficiently converted to native code. Intermediate Language is a binary assembly language that is compiled at runtime down to whatever machine language is appropriate for the host CPU.
FEATURES OF CLR
1. Automatic Memory Management :- The CLR provides the Garbage collection feautre for managing the like time of object. This relives programmer from memory management task.
2. Standard Type System :- The CLR implement a formal specification called Common Type System . CTS is important part of rules that ensures that objects written in different language can interact with each other.
3. Platform Independence :- The Compiler compiles code language, which is CPU independent . This means that the code can be executed from any platform that supports .NET CLR.
4. Security Management :- In .Net platform, security is achieved through the code access security {CAS} . In the model, CLR enforces the restriction an managed code through the object called "permissions". The CLR allows the code to perform only that task for which it has permission. In other words, the CAS model specifies what the code can access instead of specifies who can access resources.
BENEFITS OF CLR
1. Performance improvement
2. The ability to easily use components developed in other languages.
3. Extensuble types provide by library.
4. New language features such as inheritance, interfaces etc.
5. very strong type safety.
6. Syntax and semantics are similar to C or C++
0 Comment to "Commom Language Runtime (CLR) In VB.NET"
Post a Comment