[Mono-list] IL Assembler
   
    Michael Erdmann
     
    michael.erdmann@snafu.de
       
    Sun, 09 Feb 2003 21:01:51 +0100
    
    
  
This is a multi-part message in MIME format.
--------------050106050606030706030704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I have checked out the latest version, and run some tests on it.
hallo.a
does not assemble at all, sice ilasm seems o need a class.
chapter5.a
I have tried some of the examples from chapter 5 of part II of
the CLI description. There are some problems which i have
marked inline as comments.
Michael
Jackson Harper wrote:
>
>    Hello!
>
>    I think I didn't checkin most of my changes untill sunday night. 
> There should be a pretty good command line handler now. It allows you 
> to specify output file name, library or execuatble, and whether or not 
> to scan only. I tried to match the MS ilasm switches. I also checked 
> in a bunch of little fixes in codegen, and parsing.
>
>    Sometime next week I will have things mildly stable in cvs, at that 
> point I could really use allot of tests. Would you be willing to write 
> some ilasm tests?
>
>
> Thanks,
> Jackson
>
>
--------------050106050606030706030704
Content-Type: text/plain;
 name="hello.a"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="hello.a"
.assembly extern mscorlib {}
.assembly hello {}
.method static public void main() cil managed 13 { 
   .entrypoint 
   .maxstack 1
   ldstr "Hello world!" 
   call void [mscorlib]System.Console::WriteLine(class System.String) 
   ret
}
--------------050106050606030706030704
Content-Type: text/plain;
 name="chapter5.a"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="chapter5.a"
.assembly chapter5 {}
.class Test {
.method static public void main()  {
'Chapter 5.X':
   ldstr "Hallo" + "Hallo"
	      + "Hallo "
//   ref. p.6 line 30
//   ldstr "Hello World\
//             \040from CIL!" 36
'Chapter 5.3':
@Test?:
$Test:
?_X_:
// 'Odd\102Char':		does not assemble, see 5.3 p. 7 l. 24
'Chapter 5.4':
'label1':
label1:                     // ref. 5.4 page 8 line 7.
label1:			    // this should have caused some error message!!!!
   ret
}
}
--------------050106050606030706030704--