Example Assembly Code

If your compiler cannot generate legitimate assembly code for you to registor allocate with, this page has some code you can try.

First, assemstore.sml has code to export and load Assem.in sr lists. It will very likely need tweaking for each group's compiler—see the comments within the file for more information.

Second, hello.sml and sier.sml contain exported assembly code for two simple programs. They each need string literals to be inserted in the resulting assembly; the header of each file explains what string literals are needed.