C431 Project 4 -- Assembly Code Generation

C431: Fall 1994

Due Dates

Description

Use the interpreters beta.ss and gamma.ss as a guide to implement a code generator for the code-generation language of project 3. The target language is assembly code for the Alpha AXP processor. Use the files startup.c call_scheme.s to test your solution. The file cg-help.ss defines a number of little procedures to assist with the code generation.

Define a procedure cg that takes an output port and an expression in code-generation form and prints the assembly code for the expression to the port.

Support the following inlined procedures: +, -, =, <, boolean?, car, cdr char?, cons, eq?, integer?, not, null?, pair?, procedure?, string, string?, string-length, string-ref, string->symbol, vector, vector?, vector-length, vector-ref, vector-set!, symbol?, and make-symbol.

Submit by email to sakumar@copper at least 100 lines of core-form code for use as test data in a message with subject accept4. Submit your project solution in a message with subject code4. Also submit a listing of your code in Sanjeev's LH215 mailbox. Include comments on any unusual features of your solution and any known bugs.

Policies

See the courese description for policies common to the projects of this course.

chaynes@indiana.edu