This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Lot of cycle taken to execute simple for loops in DM6437 - CCS 3.3.38.2



Void  f1(struct t1 *p1,struct t2 *p2,struct t3 *p3,struct t4 *p4)

{

char *temp = p3->data;

char *temp1 = p1->data;

for(i=0;i<479;i++)

{

for(j=0;j<720;j++)

{

temp = temp1; // around 20,000 cycles

temp++;

}

}

}

Compiler Option Set to : -O3