int proc(int *a0, int a1) {
int r0;
if(a1 == 0) {
/* L0 */
r0 = 0;
} else {
/* La */
r0 = proc(a0, a1 – 1);
r0 = r0 + a0[a1 – 1];
}
/* L1 – callee epilogue */
return r0;
}
/*
stack:
0: ra
4: a0 (0 in caller)
8: a1 (4 in caller)
*/