EmbDev.net

Forum: ARM programming with GCC/GNU tools Benchmarking using GDB's built-in ARM simulator?


von Andreas S. (andreas) (Admin)


Rate this post
useful
not useful
Hi,

does anyone know a way to compare execution times of programs in the GDB
ARM simulator? Is there something like a cycle counter that I can access
from GDB or from the simulated code?

Andreas

von Andreas S. (andreas) (Admin)


Rate this post
useful
not useful
I found a solution here, about 5 minutes after I had finished writing my
own:
http://www.cygwin.com/ml/insight/2003-q1/msg00081.html

My patch:
http://www.mikrocontroller.net/attachment.php/371627/gdb-armulator-cycles.patch

Example:
(gdb) sim cycles
S: 636
N: 420
I: 75
C: 0
F: 0
total: 1131

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.