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.
chaynes@indiana.edu