4.3 Disassembling an assembly file


VS .NET comes with a GUI-based disassembler tool which can be used to view the contents of the IL file. The IL disassembler can be really useful if you are really interested in understanding how things really work underneath, how different .NET compilers optimize their codes, and similar issues.

Fire up IL disassembler from the command prompt by typing:

 c:\expt>ildasm HelloWorld.exe 

Figure 4.4 shows a screenshot of the disassembler at work. This book does not go into IL specifics.

Figure 4.4. The IL disassembler tool shows the contents of the HelloWorld.exe assembly. The IL equivalent of the Main() method in HelloWorld.cs is shown here.

graphics/04fig04.jpg



From Java to C#. A Developers Guide
From Java to C#: A Developers Guide
ISBN: 0321136225
EAN: 2147483647
Year: 2003
Pages: 221
Authors: Heng Ngee Mok

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net