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

von Andreas S. (andreas) (Admin) Flattr this

Rate this post
0 useful
not useful

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?


von Andreas S. (andreas) (Admin) Flattr this

Rate this post
0 useful
not useful
I found a solution here, about 5 minutes after I had finished writing my

My patch:

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


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.