Sunday, September 6, 2009

.NET Framework basics

.NET Framework basics

.Net Common Language Specifications (CLS)

CLS simply provides the bare rules for .NET-compliant languages. Languages can adhere to their own specification. In this case, the actual compilers do not need to be as powerful as those that support the full CLS.

Common Language Runtime(CLR)

The heart of .net Framework is Common Language Runtime (CLR).

The main benefit is that with CLR you can rely on code that is accessed from different languages. That is one coder can write a module in C# and the same code can be used by another programmer in VB.NET. The .NET languages take care of memory issues automatically.

Microsoft Intermediate Language (MSIL):

Microsoft Intermediate Language (MSIL) or Intermediate Language (IL) is a programming language.We can write IL directly. But when we use high level languages like C# , before the code is executed, the MSIL musyt be converted into platform_specific code. The CLR include JIT compiler .

compiler order is as follows.

Source Code => Compiler => Assembley =>Class Loader =>Jit Compiler =>Manged Native Code=>Execution.

The above is the order of compilation and execution of programs. Once a program is written in a .Net compliant language, the rest all is the responsibility of the frame work.

No comments:

Post a Comment

Ads

Your Ad Here