We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
How can I use PMU(Performance Monitor Unit) in ARM11 to calculate execution clock cycles of an assembly code.
I am using raspberry pi Model B. I am programming it in assembly language (running assembly program as OS). And want to calculate number of clock cycles it takes to execute my code.
Is there any way I can read register values after execution of an assembly program?
May be save in a file(text or csv etc. on sdcard) or any other easy method?
if you use Raspberry Pi, I think there would be the self C compiler implemented. So, you can use the fprintf function to store the PMU results. I'm not sure this can be possible because I don't have Raspberry Pi.
Best regards,
Yasuhiko Koumoto.