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::MainSo 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 and/or assembly:
“No language is rude that can boast polite writers.”
—Aubrey Beardsley (18721898)
“A man may be a heretic in the truth; and if he believe things only because his pastor says so, or the assembly so determines, without knowing other reason, though his belief be true, yet the very truth he holds becomes his heresy.”
—John Milton (16081674)