Thursday, December 09, 2004 - Posts

Hello World in MSIL

I just had to put this down. By the way its on framework 2.0

// Metadata version: v2.0.40607
.assembly extern mscorlib
{
   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
   .ver 2:0:3600:0
}

.assembly First{}
.module first.exe

// =============== CLASS MEMBERS DECLARATION ================

.class private auto ansi beforefieldinit ClassA
      
extends
[mscorlib]System.Object
{
     .method
public hidebysig static void Main() cil managed
    {
      
.
entrypoint
          
ldstr "Hello World"
           
call void [mscorlib]System.Console::WriteLine(string)
          
nop
          
ret
   
}
// end of method
} // end of class

// =============== CLASS MEMBERS DECLARATION ================

with 1 Comments