Tool/software: TI C/C++ Compiler
Hi,
I am working on ARM cortex-15 processor of TDA2Px board, i want to do my function profiling, i was using this method for calculation:
start = clock();
...... // func to be profiled
end = clock();
printf( "cpu_time_used = %d \n", ((double)(end - start)));
but the cycle count are fluctuating. I wanted to do the profiling using ARM cycle counter.
so, i have gone through this link:
the code attached in this link, when i debug it gives a error:"illegal instruction" & then it get exited.
So, is their anything which i am missing?
and it is the right way to do profiling using the arm cycle counter?
Regards
Surbhi