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



.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
}
.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
}

}

Reply via email to