
248
|
Chapter 7, Help and Research
#64 Examine the Innards of Assemblies
HACK
This view reports on all kinds of interesting information including the size of
the file and what percentages different parts of the file contribute to the
whole.
For more information on the advanced mode of ILDASM, please refer to the
ILDasmAdvancedOptions.doc file that is in the same directory as the
ILDASM executable.
HACK
#64
Examine the Innards of Assemblies Hack #64
ILDASM is great for digging into assemblies, but Reflector is a powerful, free
tool that gives you even more.
When you compile your source code in Visual Studio, the compiler trans-
lates the high-level source code, not into machine-specific instructions, but
into an intermediate language known as Microsoft Intermediate Language
(MSIL). This Intermediate Language (IL), along with additional security, ver-
sioning, sharing, and other related metadata, is packaged into one or more
DLLs or executable files. The complete package is referred to as an assembly.
As you saw in “Examine the IL Generated by Your Code”
[Hack #63], there are
free tools that can examine the IL of an assembly.
While examining the IL of an assembly can be useful at times, it requires
familiarity with MSIL. More often than not, the average developer is much
more comfortable with a high-level programming language like C# or Visual
Basic rather than IL. Fortunately, a free tool called Reflector ...