Assembly (CLI) - Language of An Assembly

Language of An Assembly

The assembly is built up with the CIL code, which is an intermediate language. The framework internally converts the CIL into native assembly code. If we have a program that prints "Hello World", the equivalent CIL code for the method is:

.method private hidebysig static void Main(string args) cil managed { .entrypoint .custom instance void System.STAThreadAttribute::.ctor = ( 01 00 00 00 ) // Code size 11 (0xb) .maxstack 1 IL_0000: ldstr "Hello World" IL_0005: call void System.Console::WriteLine(string) IL_000a: ret } // end of method Class1::Main

So the CIL code loads the String onto the stack. Then it calls the WriteLine function and returns.

Read more about this topic:  Assembly (CLI)

Famous quotes containing the words language of, language and/or assembly:

    Philosophy is written in this grand book—I mean the universe—
    which stands continually open to our gaze, but it cannot be understood unless one first learns to comprehend the language and interpret the characters in which it is written. It is written in the language of mathematics, and its characters are triangles, circles, and other geometrical figures, without which it is humanly impossible to understand a single word of it.
    Galileo Galilei (1564–1642)

    Whether we regard the Women’s Liberation movement as a serious threat, a passing convulsion, or a fashionable idiocy, it is a movement that mounts an attack on practically everything that women value today and introduces the language and sentiments of political confrontation into the area of personal relationships.
    Arianna Stassinopoulos (b. 1950)

    There is a sacred horror about everything grand. It is easy to admire mediocrity and hills; but whatever is too lofty, a genius as well as a mountain, an assembly as well as a masterpiece, seen too near, is appalling.
    Victor Hugo (1802–1885)