Forums

ccs profiler

Started by Khawar Shahzad July 4, 2008
Hi,
I am using c6416 device cycle accurate simulator and i am profiling a
piece of code.
When i use clock() function to get the cycle count, i get 16500 cycles
for the code...
but when i use code composer studio profiler tool then i get 25000
cycles as the cycle count.
My question is that which cycle count is correct and why am i getting
different cycle count.
Thanks
Khawar,

one does not count the clocks during pipeline stalls, the other does count the clocks during
pipeline stalls.

R. Williams

---------- Original Message -----------
From: "Khawar Shahzad"
To: c...
Sent: Fri, 04 Jul 2008 04:25:17 -0000
Subject: [c6x] ccs profiler

> Hi,
> I am using c6416 device cycle accurate simulator and i am profiling a
> piece of code.
> When i use clock() function to get the cycle count, i get 16500 cycles
> for the code...
> but when i use code composer studio profiler tool then i get 25000
> cycles as the cycle count.
>
> My question is that which cycle count is correct and why am i getting
> different cycle count.
> Thanks
------- End of Original Message -------