站内搜索: 请输入搜索关键词
当前页面: 图书首页 > From Java To C# A Developers Guide

From Java To C# A Developers Guide

[ directory ] Previous Section Next Section

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

    [ directory ] Previous Section Next Section