|Monitor for run-time code execution? firstname.lastname@example.org (2003-10-31)|
|Re: Monitor for run-time code execution? email@example.com (Paul Pluzhnikov) (2003-11-08)|
|Re: Monitor for run-time code execution? firstname.lastname@example.org (Tim Newsham) (2003-11-08)|
|From:||Paul Pluzhnikov <email@example.com>|
|Date:||8 Nov 2003 01:37:08 -0500|
|Organization:||EarthLink Inc. -- http://www.EarthLink.net|
|Posted-Date:||08 Nov 2003 01:37:08 EST|
firstname.lastname@example.org (mohit) writes:
> I wanted to get the run-time statistics for the instructions executed
> by a program. i.e. a sample "hello world" program in ansi C performs
> : 5-MOV, 3-LOAD instructions .
On what platform?
On Linux, look at valgrind (http://developer.kde.org/~sewardj).
From cachegrind (one of valgrind's "skins") description:
If you desire, it will show the number of cache misses, memory
references and instructions accruing to each line of source code,
with per-function, per-module and whole-program summaries. If you
ask really nicely it will even show counts for each individual
In order to understand recursion you must first understand recursion.
Return to the
Search the comp.compilers archives again.