Академический Документы
Профессиональный Документы
Культура Документы
First.c metadata
Code
Tcc first.c
[machine dependent
format]
first.exe
X86 Inst’ns set
Executable
files
IN C language
Metadata it is going to act like a repository which
maintains the information of the header file
Code this code will be in the form of machine
dependent only then the OS of the system,which will
be in a position to understand.
X86 instructions it is going to provide on which
platform it can work,where exactly the application
can execute.
IL/Assembly
First.vb metadata
Code
Vbc first.vb
[machine independent
format] [MSIL]
first.exe
Resources
IL/Assembly
Manifest
IL/Assembly
Meta data in ‘C’ it is header file and in .net it is called as base
class libraries
It acts like a repository which maintains the information about
the assemblies ie Base Class libraries used with in the assembly.
Code it is a machine independent code in the format of MSIL
instructions.OS can’t understand the code.
Resources is goind to be collection which maintains the
information of external resources like
audio,vedio,icons,cursors,culture specific information etc used
within the assembly.
Manifest provides the information about the current assembly.
If the assembly is of type exe then that is binded to “Portable
Executable Wrapper” the function is to invoke a CLR such that
you get the native code of the OS
metadata P
E
Code
[machine independent W
CLR
format] [MSIL] R
A
Resources P Native
P code
Manifest E of the OS
R
ASSEMBLY
The compiled source of the .net application
is called as an Assembly
Dot net source
Assembly
.exe .dll
The 3 Types
~~~ Private Assembly (Default)
~~~ Shared Assembly
~~~ Satellite Resource Assembly
Private Assembly
Ifthe assembly is of type private then
that assembly will always be binded to
the application itself. {OR} A private
assembly is normally used by a single
application, and is stored in the
application's directory, or a sub-
directory beneath.
Note if the assembly is referred by ‘N’
no of applications then ‘N’ no of
assembly copies will be created at the
relevant folder of the application
Source.VB
Appl’n1.exe
Source.dll C:\app’n 1 Bin
source.exe
Appl’n2.exe
C:\app’n 2 Bin
Business Object / source.exe
.net component Appl’n3.exe
C:\app’n 3 Bin
source.exe
PRIVATE ASSEMBLY
Steps to define an
assembly using VS.Net IDE
1. Select class library template.
2. Specify the name of the class library.
– Note:The name of the class library will be
implicitly considered as the namespace name
for the library.
3. Write the code as per the requirement.
SHARED ASSEMBLY
The assemblies will be shared among all
the applications.{OR} shared assembly is
normally stored in the global assembly
cache, which is a repository of
assemblies maintained by the .NET
runtime. Shared assemblies are usually
libraries of code which many applications
will find useful, e.g. the .NET framework
classes.
Strong name
SHARED ASSEMBLY
Source.VB
Global
Source.dll Assembly C:\app’n 1 Bin App1.exe
Cache
cultureInfo(culture)
system.threading
current culture
thread.currrentThread
currentUIculture