All:
I need to optimize a for() loop for the C5505...I have a raw buffer that needs to be dealt into 3 bins...
for (i=0;i<1000;i++)
{
j = 3*i;
buff1[i] = rawbuff[j];
buff2[i] = rawbuff[j+1];
buff3[i] = rawbuff[j+2];
}
I tried to make i & j global instead of local - no better results.
If I went from 1000 to 0, instead of 0 to 1000, would that be more optimal?
Would a do-while work better than the for()?
If I created a structure that had buff1, buff2, buff3, could that be made to work better than 3 independent buffers?
I can examine the resulting assembly, and create an optimized assembly routine, but I would rather not.