I was trying to figure out clock cycles using two methods (for C64x+ processor environment) :
1) CCSV5.5->Run->Clock->Enable : I make sure the cycle count is zero before entering a function and checked it after the function execution is complete. It is 9 * 10^5 cycles.
2) TI DSP BIOS : I called the function CLK_gethtime(); before and after the function is called as below : start = CLK_gethtime(); Function(); end = CLK_gethtime(); cycles = end - start; This shows the cycle count it takes is : 6*10^5 cycles
Can someone explain if I am missing something ?
Thanks,
Suresh