A code generator that generates MIPS assembly code (suitable as input to the Spim interpreter) for C-- programs represented as abstract-syntax trees.