EmbDev.net

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


Author: Andreas Schwarz (andreas) (Admin) Flattr this
Posted on:

Rate this post
0 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

Author: Andreas Schwarz (andreas) (Admin) Flattr this
Posted on:

Rate this post
0 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/3716...

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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.