Exforsys.com
 
Home Tutorials VB.NET 2005
 

The .NET Framework Architecture Part 2

 

VB.NET 2005 Free Training : The .NET Framework Architecture Part 2. In this tutorial of The .NET Framework Architecture Part 2 we will learn about Just-In-Time (JIT) compilation, Assemblies, native assemblies, Global Assembly Cache (GAC) and Comparison of VB.NET, C#, and J#.



Just-In-Time (JIT) compilation

As stated above, the Just in time compiler is a facility that is invoked by the CLR to convert the IL into machine code. The .NET framework assemblies (*.dll or *.exe) files cannot be executed by the target processor unless it is converted into native code. When the Assembly is loaded the method calls are invoked for compilation into native code. Since this is done just when the method needs to execute, it is called Just in time compilation. When the JIT is invoked for the first time there is an overhead or performance penalty, since the assembly is converted into its Native code or image using the Native Image Generator (Ngen.exe). All subsequent calls will load faster as the Native image alone is invoked thereafter from the Native image cache.


Significantly, the IL can coexist with the machine code in the application. This feature also enables the developer modify the code or add to the code even when the application is actively deployed. This functionality provided by JIT makes the .NET framework an efficient, agile and powerful means of application development.


Assemblies, native assemblies, and the Global Assembly Cache (GAC)

The primary unit of deployment is the assembly. The assembly is used by the .NET CLR as the smallest unit of deployment; version control; security; type grouping and code reuse. An assembly will consist of a manifest and one or more modules or files. It can be defined as a logical DLL that contains a manifest, type metadata, MSIL and resources. Assemblies can be application private or shared. Private assemblies are restricted to use in a single application whereas shared assemblies can be used across applications. Private applications also reside within the application folder while shared assemblies reside in the common area-- GAC(Global Assembly Cache). They must have a globally unique name.


The existence of the manifest within the assembly makes it self descriptive. It can be viewed by the IL Disassembler (Ildasm.exe) which is part of the .NET framework SDK.


The assembly is identified by the manifest. It defines security requirements, lists other interdependent assemblies and all the types and resources exposed by the assembly. Localized resources exposed by assemblies and targeted by the application contain a default culture (language, currency, date/time format etc).


The manifest contains several sections. Identity, Referenced Assemblies, file list and Custom Attributes are some of the important sections of the manifest. The Identity section as the name suggests, identifies the assembly. It contains a .assembly directive. The version directive specifies the version of the assembly, so that the CLR identifies the different versions of an application. The Identity section contains a strong name for shared assemblies and a public/private encryption key is used to distinguish between assemblies of the same name. The Identity section also optionally contains the Culture which defines the country and language of the assembly target. The .locale directive is used for this purpose and the Culture-Neutral assemblies can be used by any assembly.
The Referenced Assemblies section of the manifest provides a reference to all the assemblies used in an application.


Comparison of VB.NET, C#, and J#



The .NET framework architecture has made the language of coding immaterial to the final output. All languages also have equal access to all development capabilities and revolve around the .NET classes. The language syntax, operations etc look similar in all the languages of this group. Moreover, code can be shared by all .NET languages and so a class made in C# or J# can be used in VB.NET and vice versa.


In this context choice of language is no longer significant. Finally, all languages are transformed by the compiler into Microsoft Intermediate language. It is the programmer’s familiarity with the language that makes it material whether he is coding in VB.NET or C# or J#. However, the option settings in the compiler will have to be set to the language of coding before the compiler is used.


The speed of performance of the compiler will also vary with the language being compiled. For instance C# compiles faster than VB.NET. Subject to the above observation, the features of the languages will be dicussed in the next tutorial.



Read Next: Differences between VB.NET 1.0 and VB.NET 2.0



 

 

Comments


sonuu said:

  it is good
July 19, 2006, 6:04 am

morf2010 said:

  material is good
November 11, 2006, 8:54 pm

netra1978 said:

  Its really nice of you to provide these tpe of training
November 16, 2006, 3:33 am

arti1269 said:

  could you please email me the material.
January 8, 2007, 10:57 pm

pinnacle said:

  it is good to flush out ur memory
January 28, 2007, 10:42 am

partois said:

  To this level this is quite good, but i need to know more of practical vb.net skills. please do me a favour
March 24, 2007, 9:27 am

MANISH VORA said:

  It is very short and sweet details about VS.Net
June 28, 2007, 11:44 pm

riyaz said:

  it is very good to easily learn
July 9, 2007, 12:13 am

thirumoorthi said:

  Its good to develop our vb skills
July 9, 2007, 5:24 am

cyberwaves said:

  Tutorial is good for vb.net explanation though it is unnecessarily too lenthy to explain underlying features rather than coming to the point in few words. Graphical illustrations would have made it more simpler to grasp the concept, don't forget - "A picture is worth thousand words". A comparative graphical illustration with non-.net languages sucha as VB60 would have added more flavors to the tutorial. - thanks & regards.
August 3, 2007, 12:24 am

hitesh_passi said:

  Its very good and easy to learn and understand
August 14, 2007, 1:57 am

selvimariasoosai said:

  it is very unexpected one.i am fully satisfied in this tutorial
August 28, 2007, 9:41 am

khushi goyal said:

  i am done engineering from electronics and comm. branch so i have no knpwledge how to start with vb.net.So can i please guide me how to learn and understand it.can u please forward me the relevant material
September 13, 2007, 1:30 pm

deepak aagrawal said:

  It should be more compatible with the begginers
September 16, 2007, 12:17 am

ayesha maniar said:

  Very nice notes to learn vb.net progrmmaming language
September 21, 2007, 11:31 am

Mahesh Mohan said:

  It is explained in very short and precise manner its really good to understand
October 12, 2007, 3:02 am

Sonika Sharma Said: said:

  It is very good and easily to learn.
October 21, 2007, 4:05 am

Amitjn said:

  it is very good to provide this type of training
October 30, 2007, 4:58 am

shashikanth2020 said:

  It is providing sufficient information
November 1, 2007, 11:45 am

komala said:

  though it is simple it is very much useful to all the beginers, and professionals who misses very minute concepts
November 4, 2007, 5:52 pm

Anitha Raju said:

  nice material
April 21, 2008, 4:14 am

Maqmoor said:

  Its good that contents are good and briefly described
April 28, 2008, 6:19 am

Anubhava said:

  I m working with vb.Net. My problem is that i want to create software for Multi Language Support.
Please Help Me.


Anubhava Dimri
9250168195
anudimri1@yahoo.co.in

May 28, 2008, 7:25 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape