IL
The processor-independent instruction set that .NET compilers produce, stored in assemblies and turned into machine code by the JIT when the program runs.
In more detail
IL describes operations for an imaginary stack machine, so the same compiled file runs on arm64 and x64 and on Linux, macOS and Windows. Every .NET language compiles to it, which is how they share one runtime and one library.
Related terms
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- assembly — The compiled unit of a .NET program: a file (usually a .dll) containing intermediate language plus metadata describing every type inside it.
- Roslyn — The open-source compiler for C# and Visual Basic, which turns source code into intermediate language inside an assembly.
- machine code — The binary instructions a specific processor executes directly, such as arm64 or x64 instructions.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- OpenTelemetry, Container Publishing and Trimming — Modern .NET Core, C# & Enterprise Microservices