Hello guys,
I am trying to optimize(to reduce execution time) a small piece of code for C64x+ target using Code Composer Studio version 3.3. I used clock () function defined in < time.h> .I calculated the overhead of calling clock() as follows:
- start = clock();
- stop = clock();
- overhead = stop - start;
The problem is that the call to clock() function itself is taking 1800 cycles!! ,while my unoptimized code takes nearly 60 cycles.Please let me know whether profiling option provided by CCS IDE or clock() function should be used during optimization.
I forgot mention in the last post, the header file <time.h> is part of rts64x+ library provided by TI.