Saturday, September 15, 2012

Examine IL Using ildasm.exe

In .Net , source is compiled to an Intermediate Language called Common Intermediate Language. This  IL is later compiled into native code at runtime, running in a virtual machine.
You can examine the IL of your application by a tool called IL Disassembler (ildasm.exe). You can find this tool (ildasm) in directory: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

Ildasm will show you three basic things of IL :-
  • A list of all classes and methods in your assembly
  • The contents of the assembly’s manifest
  • IL code for any method implemented in the assembly.
 Here’s an example of what is displayed in ildasm.

IL














You can get more information from these sites-
  1. MSIL Disassembler (Ildasm.exe)
  2. Ildasm.exe Tutorial

No comments:

Post a Comment

^ Scroll to Top