Search........

Google

Sunday, March 2, 2008

About Dot Net and How it works

As we Know The dot net supports many languages Let see how it works....


The .NET initiative offers a complete suite for developing and deploying applications. The suite consists of
.NET Products
.NET Services and
.NET Framework

The .NET Framework:-

It is the foundation on which you design, develop and deploy applications.

Its consistent and simplified programming model makes it easier to build robust applications.

The .NET Class Framework consists of a class library that works with any .NET language, such as Visual Basic and C#.
This class library is build in Object-oriented nature of the runtime

The .NET frame work base classes:-

The .NET framework base classes consists of Namespaces and Assemblies
Namespaces helps to create logical groups of related classes and interfaces.

An Assembly is a single deployable unit that contains all the information about the implementation of classes, Structures and Interfaces

COMMON LANGUAGE RUNTIME:-

Common Language Runtime provides functionality such as exception handling, security, debugging and versioning support to any language that targets it.
The CLR can execute programs written in any language.

HOW IT EXECUTE:-

When you compile a program developed in a language that targets the CLR, instead of compiling the source code into machine-level code, the compiler translates it into Microsoft Intermediate Language(MSIL) or Intermediate Language(IL). No matter which language has been used to develop the application it always gets translated into IL

The compiler created the .EXE or .DLL file.
When you execute the .EXE or .DLL file, the code and all the other relevant information from the base class library is sent to the class loader.

The Just In Time(JIT) compiler translates the code from IL into managed native code. The CLR supplies a JIT compiler for each supported CPU architecture.
During the process of compilation , the JIT compiler compiles only the code that is required during execution instead of compiling the complete IL code.

During JIT compilation the is also checked for type safety
After translating the IL into native code, the converted code is sent to the .NET runtime manager.

The .NET runtime manager executes the code. While executing the code, a security check is performed to ensure that the code has the appropriate permissions for accessing the available resources

No comments: