Use this space to put some text. Update this text in HTML

468x60 banner ad

Advertise with Us

Powered by Blogger.

Thursday, 28 January 2016

What is Common Type System(CTS)?


1. It has pre-defined data type that is available in IL. It is strongly type because all the language code is compiled in dot net domain, it provides equivalent data type for other language data type.


2. CTS stands for Common Type System. It defines the rules which Common Language Runtime follows when declaring, using, and managing types

Example:

The visual basic data type is integer its equivalent data type in C# is int32.  

The common type system performs the following functions:

1.      It enables cross-language integration, type safety, and high-performance code execution.
2.      It provides an object-oriented model for implementation of many programming languages.
3.      It defines rules that every language must follow which runs under .NET framework. It ensures that objects written in different .NET Languages like C#, VB.NET, F# etc. can interact with each other.



CTS are categories into two types-

1. Value Type
2. Reference Type
 

what is JIT Compiler?









The JIT compiler that converts Microsoft Intermediate Language (MSIL) into machine code at the point when the code is required at run time.

What is Microsoft-Intermediate-Language(MSIL)?

 

 

When the code is compiled, it is translated into a language-independent and CPU-independent representation called Microsoft Intermediate Language (MSIL).
you can develop an application using different .Net framework compatible languages like C#, VB.Net, F#, Iron Python and many more. As a part of program execution, Common Language Runtime [CLR] first converts C# program into Microsoft Intermediate Language [MSIL] and then it converts it into machine instruction set using Just-In-Time [JIT] compiler.

 

What is CLR?


What Common Language Runtime(CLR)?
 


The clr is used to provide run time execution environment. Code running under the CLR is known as managed code.

Before execution of CLR, Any source code need to be compiled.

Compilation occurs in two stapes in .Net-

   1. Compilation of source code to IL.
   2. Compilation IL to platform-specific code by the CLR.

Responsibility of CLR-

1. Garbage collection-

    CLR automatically manages memory. When objects are not referred GC automatically releases those    memory.

 2. Code Access security-

 CAS grants rights to program depending on the security configuration of the machine.

 3. Code verification -

This ensures proper code execution and type safety while the code runs.  

4. IL to natives translators-

CLR uses JIT and compiles the IL code to machine code and then executes.