public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* Profiling: --insn-count=1
@ 2002-07-31 12:53 Scott Dattalo
  2002-08-01  4:18 ` Frank Ch. Eigler
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Dattalo @ 2002-07-31 12:53 UTC (permalink / raw)
  To: sid


To profile my simulated code, I've been invoking sid like so:

arm-elf-sid --cpu arm --memory-region=0x2020000,0x2000000  \
--memory-region=0xfffe0000,0x1ffff --gdb=2000 --gprof      \
--trace-counter --insn-count=1 -EL myprog

I then simulate the application with arm-elf-gcc and examine the results 
with arm-elf-gprof.

Now the question I have is there a way to count cpu cycles instead of cpu 
instructions? If there was a one-to-one relationship between the two, then 
it's not an issue. However, some instructions on the ARM are not 
single-cycled. I suppose the real question is, "is there a way to 
concisely measure the amount of 'simulated' time it take for a simulation 
to run?"

FWIW, I'm using ~6 week old copy of SID.

Scott

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-01 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 12:53 Profiling: --insn-count=1 Scott Dattalo
2002-08-01  4:18 ` Frank Ch. Eigler
2002-08-01  5:03   ` Scott Dattalo
2002-08-01  8:32     ` Frank Ch. Eigler
2002-08-01  9:00       ` Scott Dattalo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).