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 of, language and/or assembly:
“Talking about dreams is like talking about movies, since the cinema uses the language of dreams; years can pass in a second and you can hop from one place to another. Its a language made of image. And in the real cinema, every object and every light means something, as in a dream.”
—Frederico Fellini (19201993)
“The reader uses his eyes as well as or instead of his ears and is in every way encouraged to take a more abstract view of the language he sees. The written or printed sentence lends itself to structural analysis as the spoken does not because the readers eye can play back and forth over the words, giving him time to divide the sentence into visually appreciated parts and to reflect on the grammatical function.”
—J. David Bolter (b. 1951)
“That man is to be pitied who cannot enjoy social intercourse without eating and drinking. The lowest orders, it is true, cannot imagine a cheerful assembly without the attractions of the table, and this reflection alone should induce all who aim at intellectual culture to endeavor to avoid placing the choicest phases of social life on such a basis.”
—Mrs. H. O. Ward (18241899)