150 likes | 287 Views
Common Language Runtime. Introduction. The common language runtime is one of the most essential component of the .Net Framework . It acts as an agent to mange execution of code by providing the core services like Thread managing, remoting, security etc.
E N D
Common Language Runtime www.ustudy.in
Introduction • The common language runtime is one of the most essential component of the .Net Framework. • It acts as an agent to mange execution of code by providing the core services like Thread managing, remoting, security etc. • It provides an environment where all program in .Net run. www.ustudy.in
Introduction • The CLR or the runtime provides functionality such as exception handling, security, debugging and versioning support to any language that targets it. • CLR hosts a variety of languages and offer a common set of tools. It is a foundation of .NET framework. • It is providing language integration without help of COMs. www.ustudy.in
Common Language Runtime Negative Code www.ustudy.in
Managed Code • The code that is run under CLR is called Managed code. • This code is directly executed by CLR with help of managed code execution. • Managed code uses CLR which in turns looks after your applications by managing memory, handling security, allowing cross - language debugging, and so on. www.ustudy.in
Managed Code Execution Process www.ustudy.in
Architecture of CLR • When you compile a program developed in a language that targets the CLR, the compiler translates the code into an intermediate language. • This language is CPU-independent. This means that the code can be executed from any platform that supports the .NET CLR. • In this way, platform independency attain in .NET environment. www.ustudy.in
Architecture of CLR www.ustudy.in
Architecture of CLR Basic Class Library support:- • It provides classes when application needs at execution time. Thread Support:- • Thread is a light weight process. Process is nothing but the program which is in execution. • Thread support provide the multi-threading support to an application. www.ustudy.in
Architecture of CLR COM Marshaler:- • It allows the communication between the application and COM objects. Type Checker:- • It checks for Type safe checks at runtime. www.ustudy.in
Architecture of CLR Exception Manager:- • It handles all the runtime exceptions occurring during the execution of an application. Security Engine:- • It enforces security permissions as code level security, folder level security, machine level security using tools provided by Microsoft.NET and using .NET framework setting provided under control panel. www.ustudy.in
Architecture of CLR Debug Engine:- • It performs the debugging at runtime. MSIL to Nagative Compilers:- • It compiles the MSIL code to native code. Code Manager:- • It manages the code. www.ustudy.in
Architecture of CLR Garbage Collector:- • It perform the garbage collection at runtime. It is very important for memory management in the .NET framework. The garbage collection process manages the allocation and deallocation of memory far an application. Whenever you crate an object, the CLR allocates memory for the object from the managed heap. Class Loader:- • It loads the classes into system memory. www.ustudy.in
The End …… Thank You …… www.ustudy.in