|Monitor for run-time code execution? email@example.com (2003-10-31)|
|Re: Monitor for run-time code execution? firstname.lastname@example.org (Paul Pluzhnikov) (2003-11-08)|
|Re: Monitor for run-time code execution? email@example.com (Tim Newsham) (2003-11-08)|
|From:||Paul Pluzhnikov <firstname.lastname@example.org>|
|Date:||8 Nov 2003 01:37:08 -0500|
|Organization:||EarthLink Inc. -- http://www.EarthLink.net|
|Posted-Date:||08 Nov 2003 01:37:08 EST|
email@example.com (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.