Re: Monitor for run-time code execution?

Paul Pluzhnikov <>
8 Nov 2003 01:37:08 -0500

          From comp.compilers

Related articles
Monitor for run-time code execution? (2003-10-31)
Re: Monitor for run-time code execution? (Paul Pluzhnikov) (2003-11-08)
Re: Monitor for run-time code execution? (Tim Newsham) (2003-11-08)
| List of all articles for this month |

From: Paul Pluzhnikov <>
Newsgroups: comp.compilers
Date: 8 Nov 2003 01:37:08 -0500
Organization: EarthLink Inc. --
References: 03-10-152
Keywords: performance
Posted-Date: 08 Nov 2003 01:37:08 EST (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 (
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
    x86 instruction.

In order to understand recursion you must first understand recursion.

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.