CS 61C (Fall 2007)

Quiz 28

Three questions, submit as "quiz28".  Due 2:45pm before lecture 11/5/2007.


For each of the following MIPS assembly language fragments, decide which of the following applies (choose one):
  1. Must stall
  2. Can avoid stalling by using forwarding
  3. Can execute without stalling or forwarding

1.

lw $t0, 0($t0)
addu $t1, $t0, $t0

2.

addu $t1, $t0, $t0
addiu $t2, $t0, 5
addiu $t4, $t1, 5

3.

addiu $t1, $t0, 1
addiu $t2, $t0, 2
addiu $t3, $t0, 3
addiu $t3, $t0, 4
addiu $t5, $t0, 5