Hi
Is there any way to measure the total number of executed instructions for a piece of code ?
I have tried the PMU event - instructions architecturally executed. But the counted number was much more than the assembly instructions.
Such as
1. executed one assemble instruction (like, ldr), the count of the PMU event 8 is 2
2. executed 12 assemble instructions, the count of the PMU event 8 is 14
3. executed a piece of code - the count of the PMU event 8 is around 500K. I use the system timer to monitor the execution time and then convert to the DMIPS. That is almost 2.5 times of the official DMIPS shown on the ARM website.
Pls kindly give me some instructions. Thanks.
Grace