Powerpoint

Dot Net Presentation 2

You must be logged in to download this document
Reviews
Shared by: Mayur
Stats
views:
321
downloads:
74
rating:
not rated
reviews:
0
posted:
4/17/2008
language:
English
pages:
0
IL Assembler What is IL?  The .NET applications generated by .NET-oriented compilers (such as Microsoft Visual C# .NET, Microsoft Visual Basic .NET, ILAsm, and many others) are represented in an abstract, intermediate form, independent of the original programming language and of the target machine and its operating system. of IL, .NET applications written in different languages can interoperate very closely, not only on the level of calling each other’s functions but also on the level of class inheritance.  Because Example of class inheritance and interoperation of different languages  Class  written using visual basic Public Overridable Sub Hello() System.Console.WriteLine("Hello VB.NET") End Sub public Function Add(ByVal a,ByVal b) return a+b Public Class vbnet End Function End Class Csharp class extends vb class  Class written using csharp language public class csharp : vbnet { public override void Hello() { base.Hello(); int i=10,j=20; int k=(int)base.Add(i,j); System.Console.WriteLine("Hello From CSharp"); System.Console.WriteLine(i+ "+ "+j+" = "+k); } public static void Main() { csharp h = new csharp(); h.Hello(); } } CLS – Common Language Specification  The set of rules guaranteeing the interoperability of .NET applications. by ECMA (European Computer Manufacturers Association).  Outlined  limits the naming conventions, data types, function types, and certain other elements, forming a common denominator for different languages. compliant code  CLS CTS – Common Type Specification Abstract intermediate representation  metadata  system of descriptors of all structural items of the application—classes, their members and attributes, global items, and so on—and their relationships.  Manage  code represents the functionality of the application’s methods (functions) encoded in an abstract binary form known as Microsoft intermediate language (MSIL). CLR manages IL code  type  control verification and conversion of item types during execution.  structured  exception handling similar to “unmanaged” structured exception handling (C++-style), but it is performed by the runtime rather than by the operating system.  garbage  collection automatic identification and disposal of objects no longer in use.  .Net Application = one or more managed executables = collection of metadata and managed IL code = assembly = collection of modules two major common language runtime subsystems dealing with each component are :    The Loader JIT (just-in-time) compiler Creation and execution of a managed .NET application Writing program in Csharp language class a { public static void Main() { System.Console.WriteLine("Hello CSharp"); } } >>csc /out:e:\testIL\a.exe e:\testIL\a.cs >>Ildasm e:\testIL\a.exe Writing program in ILAsm language  Code for Hello.il file .assembly extern mscorlib { } .assembly Helloassembly { } .module hello.exe .namespace hello.or { .class public auto ansi hello extends [mscorlib]System.Object { .field public static int32 val .method public static void Main( ) cil managed { .entrypoint ldstr "hello using IL" call void [mscorlib]System.Console::WriteLine(string) ret } } } Compilation tools  ILASM , ILDASM , NGEN
Related docs
Dot Net Presentation 2
Views: 321  |  Downloads: 74
Dot Net Presentation 6
Views: 397  |  Downloads: 65
Dot Net Presentation 4
Views: 625  |  Downloads: 72
Dot Net Presentation 1
Views: 630  |  Downloads: 76
Dot Net Presentation 3
Views: 336  |  Downloads: 62
Dot Net Presentation 5
Views: 887  |  Downloads: 80
dot business
Views: 7  |  Downloads: 0
Designated Copyright Agent - PALACE dot NET,
Views: 52  |  Downloads: 0
Accelerated Dot NET Development - 3 Days
Views: 45  |  Downloads: 3
Microsoft_Net
Views: 159  |  Downloads: 12
net_notes
Views: 167  |  Downloads: 27
NET Framework Configuration
Views: 27  |  Downloads: 1
Other docs by Mayur
WORLD_TIME[1]
Views: 178  |  Downloads: 41
TRAINS_INDIA
Views: 652  |  Downloads: 33
TaxCalc_2006
Views: 383  |  Downloads: 15
STD
Views: 193  |  Downloads: 20
ringtones
Views: 246  |  Downloads: 20
PICNIC_SPOTS
Views: 1286  |  Downloads: 30
NAME___ITS_MEANING
Views: 410  |  Downloads: 59
life_time_calender
Views: 215  |  Downloads: 32
clock
Views: 193  |  Downloads: 23
celldecoder
Views: 186  |  Downloads: 29