Re: CPU Cycles Consumed by C program on PXA255 | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Mon, Jun 16, 2008 at 06:55:05PM +0500, Junaid Jamil wrote: > I have run my C program on a board which have Intel PXA255 ARM > processor. Now I want to know how much CPU cycles it consumed during > its execution. I have calculated the CPU cycle counts on x86 using > RDTSC instruction. Can any one please guid me how can I do the same on > ARM with RDTSC level precision? By the way, I am using arm-linux-gcc > 3.3.2 toolchain to build executables that I run on my board. AFAIK ARM doesn't have a TSC. Some implementations have a timer that can be used that way, read the datasheet for your CPU to figure out. If all you want is to profile your application, you could as well use time(1) or gprof(1). Erik -- Erik Mouw -- mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature
------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]