Friday, June 22, 2012

CLR, CLS, CTS, JIT, CIL

The Common Language Runtime (CLR) is the virtual machine component of Microsoft's .NET framework and is responsible for managing the execution of .NET programs. In a process known as just-in-time (JIT) compilation, the CLR compiles the intermediate language code known as Common Intermediate Language (CIL) into the machine instructions that in turn are executed by the computer's CPU. The CLR provides additional services including memory management,type safety and exception handling. All programs written for the .NET framework, regardless of programming language, are executed by the CLR. It provides exception handling, Garbage collection and thread management.



The Common Type System (CTS) A set of data types and operations that are shared by all CTS-compliant programming languages. Metadata Information about program structure is language-agnostic, so that it can be referenced between languages and tools, making it easy to work with code written in a language you are not using.
This is a Guideline that to communicate smoothly with other .Net Languages. CLS is set of language rules that defines the language standards for dotnet.

Common Language Specification (CLS) A set of base rules to which any language targeting the CLI should conform in order to interoperate with other CLS-compliant languages. The CLS rules define a subset of the Common Type System.
This is used to communicate with other language. That means to match the data types, library methods, classes..., CTS make us feel it as a common environment without considering the language. Example in vb we have int and in c++ we have long so that in one case they are not compatiable with each other so that CTS palys important role with using System.int32

No comments:

Post a Comment