Common Intermediate Language
Common Intermediate Language (CIL) is the lowest-level human-readable programming language in the .NET Framework and in the Common Language Infrastructure. Languages which target the .NET Framework compile to CIL, which is assembled into bytecode. CIL resembles an object oriented assembly language, and is entirely stack-based. It is executed by a virtual machine. The primary .NET languages are C#, Visual Basic .NET and Managed C++.With the beta releases of the .NET languages, CIL was originally known as Microsoft Intermediate Language (MSIL). Due to standardization of C# and the Common Language Infrastructure the bytecode is now officially known as CIL. Because of this legacy, however, CIL is still often referred to as MSIL. This is especially true of longtime veterans of the .NET languages.
This is a Hello world program in CIL.
Example CIL code
.method public static void Main() cil managed
{
.entrypoint
.maxstack 8
ldstr "Hello world."
call void [mscorlib]System.Console::WriteLine(string)
ret
}
External links