Tom Kelliher, CS 220
Due Nov. 13, 2009, with a milestone due Nov. 6
Simply, hand-compile the postfix.c program on the class home page to
MIPS assembly and run under SPIM. Use typescript to record a
session in which you run the
expressions on the ``Postfix Calculator Test'' document (refer to the class
web site) on your calculator
in SPIM. Hand-in the typescript session and your commented MIPS
source code.
Ground rules:
main(). This is crucial for printVal(), as this function
is recursive. You may NOT implement printVal() non-recursively.
Note that registers $fp and $sp are for the frame stack. Use
$t8 (see below) for the operand stack.
int isEmpty(void); int isFull(void); void push(int item); int pop(void); int getValue(void); void compute(void); void output(void); void die(const char *s); void printVal(int v); int main();