Tutorial on JVM class file structure (not strictly necessary, but helpful and interesting)
The Standard Library
Consult the Tiger documentation, which describes the procedures and functions that must be supported in the language's standard library. You job is to implement every one of these in Jasmin, which you will then compile to a .class file.
Note that, for purposes of code generation, you could just as easily implement every procedure/function in Java (or another JVM language), compile it to a .class file and use that instead. This would miss the piont of the exercise, however, which is to get you familiar enough with JVM code that you can generate it on your own.
I've made an executable .jar of the Jasmin assembler, which is compatible with Java 7. You can grab it from THIS LINK.
- Your TigerStdLib.j file
- A test driver, written in Java, which you will use to test the methods in your TigerStdLib.class file.