This final phase of the project is described in detail in the handout (PDF).
There also is an online version for you to play with at http://cgi.aggregate.org/cgi-bin/swagac07.cgi. Don't worry about making your code exactly match that generated by the online version; we're looking for the functionality to be approximately the same. Even minor functional differences in terms of incorrect stack offsets will be forgiven because the PDF handout above actually contained such errors....