CS 61C (Fall 2007)

Quiz 9

Two questions, submit as "quiz9".  Due 2:45pm before lecture 9/19/2007.


1.

Write the MIPS assembly code for a C return statement, for a function with a void return type. Very briefly describe how this would change if the return type were different.

2.

How many of the MIPS registers are guarenteed not to have changed after a function call? In other words how many registers can the calling function rely on being unchanged?