alt
Advertisement

Online Training
Career Series
Exforsys
Exforsys arrow Tutorials arrow VB.NET 2005 arrow The .NET Framework Architecture Part 2
Site Search
Sponsored Links



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.


Trackback(0)
Comments (23)add comment

sonuu said:

  it is good
July 19, 2006

morf2010 said:

  material is good
November 11, 2006

netra1978 said:

  Its really nice of you to provide these tpe of training
November 16, 2006

arti1269 said:

  could you please email me the material.
January 08, 2007

pinnacle said:

  it is good to flush out ur memory
January 28, 2007

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

MANISH VORA said:

  It is very short and sweet details about VS.Net
June 28, 2007

riyaz said:

  it is very good to easily learn
July 09, 2007

thirumoorthi said:

  Its good to develop our vb skills
July 09, 2007

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 03, 2007

hitesh_passi said:

  Its very good and easy to learn and understand
August 14, 2007

selvimariasoosai said:

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

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

deepak aagrawal said:

  It should be more compatible with the begginers
September 16, 2007

ayesha maniar said:

  Very nice notes to learn vb.net progrmmaming language
September 21, 2007

Mahesh Mohan said:

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

Sonika Sharma Said: said:

  It is very good and easily to learn.
October 21, 2007

Amitjn said:

  it is very good to provide this type of training
October 30, 2007

shashikanth2020 said:

  It is providing sufficient information
November 01, 2007

komala said:

  though it is simple it is very much useful to all the beginers, and professionals who misses very minute concepts
November 04, 2007

Anitha Raju said:

  nice material
April 21, 2008

Maqmoor said:

  Its good that contents are good and briefly described
April 28, 2008

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
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

May 28, 2008

Write comment

busy
 
< Prev   Next >
Sponsored Links
© 2008 Exforsys.com
Joomla! is Free Software released under the GNU/GPL License.
Page copy protected against web site content infringement by Copyscape