Compilers
Code Generator
Due: Thursday, December 16, 1999
Copy the file
~msiff/public/btl.tar
into your directory. If you type in the command
/usr/local/bin/tar xvf btl.tar
it will create a bunch of sub-directories:
All your work will be in the stub file (codegen.sml).
To test out the code generator (and you can do this right away, although it won't be correct for the parts you have to write code for), do a CM.make(); and then
D.cg "<name of file>";
This will spit out assembly code and leave you with a %prompt.
Looking Through the Assembly Code
To go through the code generated, there are several commands you can use at the %prompt:
Note: You should create, edit, continue to work on your file codegen.sml and need only submit that file.
Submitting
Assignments are to submitted via electronic mail.
Make sure your program contains comments indicating that you are the author. Include your e-mail address in the comments. By including your name you are stating that this work is yours and yours alone.
This is a paperless assignment. You need only send me your solution (codegen.sml) via e-mail.