1) MSIL
2)
Compilation Model of .NET application
3) Assembly
4)
Execution of Model of .NET application
5) CLR
6) CTS
7) CLS
8) .NET
Framework Architecture
1)
MSIL:
- MSIL = Microsoft Intermediate Language
- MSIL = compiled source of a .net application
- MSIL is also called as "byte code" / "IL" / "CIL" (Common Intermediate Language)
- MSIL Code will be saved in the form of ".exe" file
Note: all .net languages will be compiled into MSIL
only.
Execution
model of all the .NET languages will be same.
3)
Assembly:
Ø It
is the exe file that stores "compiled source code" of a .net
application.
4)
Execution of .net application:
- This explains how a .net project executes at run time, internally.
- At run time, CLR (Common Language Run time) will load the MSIL code and also execute it.
- CLR also provides necessary run time service such as memory allocations, memory de-allocations, exception management, compilation from msil to native machine code etc., while running the .net appl.
5)
CLR:-
- CLR stands for "Common Language Runtime"
- It is one of the most important components of .net
- Heart of .net framework
- It is a set of resources (run time services) to execute any .net application.
- CLR = run time mechanism = common execution engine
- Without installing clr, the user can't run the .net application.
- Inner components of CLR:
a. JIT
(Just in time) compiler
b.Class
loader
c. Memory
manager
d.
Garbage Collector
e. Exception
manager
a)
JIT compiler:
Ø It
internally and automatically compiles (converts) "MSIL code" into
"native machine code".
b)
Class loader:
Ø It
loads the class from the compiled source code into the memory, when an object
is declared for the class.
c)
Memory manager:
Ø It
allocates necessary memory for the variables, when they are declared.
d)
Garbage collector:
Ø It
automatically de-allocates the memory of the variables, at the end of
application.
e)
Exception manager:
Ø It
handles the run time errors (exceptions) occurs in the program.
6)
CTS:-
Ø Common
Type System
Ø It
provides necessary common data types for all .net languages.
Ø Examples
for common data types provided by cts:
o
Int16
o
Int32
etc…..
7)
CLS:-
- Common Language Specification
- It provides a set of common rules for all .net languages.
- Those rules belongs to programming concepts such as:
a) Classes &
objects
b) Access
modifiers
c) Static
members
d) Constructors
& destructors
etc……
8)
.NET Framework Architecture:-
BCL:-
- Base Class Library
- It's a set of pre-defined classes, which are useful to write actual source code in any .net programs.



No comments:
Post a Comment