for (i=0, i<10000, i=i+2)
{
A[i]=B[i]+C[i]
A[i+1]=B[i+1]+C[i+1]
}
Given the preceding code, what does the MIPS assembly look like? I’m trying to construct assembly code where R9 = base address of A, R9 = base of B, R10 = base of C
I know this method of unrolling ONCE is supposed to be more efficient, but it’s tough to see what the MIPS looks like.
Can someone please help me out?
The loop body would be something like this:
MIPS has lots of registers, so it would likely be worth unrolling the loop a few more times.