ILAsm

Last updated

ILAsm (IL Assembler) generates a portable executable (PE) file from a text representation of Common Intermediate Language (CIL) code. It is not to be confused with NGEN (Native Image Generator), which compiles Common Intermediate Language code into native code as a .NET assembly is deployed. [1]

Contents

ILAsm is commonly used in low‑level .NET development scenarios, such as debugging, testing, or learning the inner workings of the Common Language Runtime. It allows developers to inspect and manipulate the intermediate language code directly, which can be useful for performance tuning, manual optimization, or injecting custom metadata. [2]

ILAsm supports generating both console applications and class libraries, allowing developers to specify metadata, define assembly references, and set entry points for managed code. It can also produce debug information compatible with the Visual Studio debugger, which enables step‑through debugging at the IL level. These features make ILAsm a valuable tool for learning, testing compiler output, or performing low‑level modifications to .NET assemblies. [3]

See also

References

  1. "Ilasm.exe (MSIL Assembler)". Microsoft. Retrieved 2017-07-03.
  2. gewarren. "Ilasm.exe (IL Assembler) - .NET Framework". learn.microsoft.com. Retrieved 2025-12-29.
  3. "ilasm(1) — mono-devel — Debian unstable — Debian Manpages". manpages.debian.org. Retrieved 2025-12-29.