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
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.
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
Prashanth,
In the above code, just (temp=temp1) - this should not be taking 20000 cycles.
You can view the code as mixed of Source and Assembly in CCS, to understand better.
Refer this app note : http://focus.ti.com/lit/an/spra884a/spra884a.pdf
May I know what you are trying to achieve. You can leverage lots of specialized applications :
http://focus.ti.com/lit/ug/sprueb8b/sprueb8b.pdf
Regards
Varada