An Example
int leaf(int g, int h, int i, int j) {
int f;
f = (g + h) - (i + j);
return f;
}
Let g, h, i, j be passed in $a0, $a1, $a2, $a3, respectively
Let the local variable f be stored in $s0
Previous slide
Next slide
Back to first slide
View graphic version