MSIL Assembler (ilasm.exe)
This
tool takes MSIL as input and
generates a portable executable (PE) file containing the MSIL and the
metadata required to run on the .NET Framework. This is most useful
to vendors who would like to create MSIL-compliant compilers. All
they have to do is write the compiler to translate the source
language to MSIL. Ilsam.exe
will take the second
step to put the MSIL content into the PE format where it can be
executed on the .NET Framework. The general syntax for MSIL assembler
is:
ilasm [options] MSILfilename
The following table shows some of the common usages of the assemblers:
Option |
Description |
---|---|
/debug |
This option ensures that the output PE contains debugging information such as local variables, argument names, and line numbers. This is useful for debug build. |
/dll |
This option produces a |
/exe |
This option produces an |
/listing |
This option produces a listing of the output on STDOUT. |
/output=filename |
|
/? |
This option is used to obtain command-line help. |
Get .Net Framework Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.