Re: Monitor for run-time code execution?

Paul Pluzhnikov <ppluzhnikov@earthlink.net>
8 Nov 2003 01:37:08 -0500

          From comp.compilers

Related articles
Monitor for run-time code execution? mohitk_3@ureach.com (2003-10-31)
Re: Monitor for run-time code execution? ppluzhnikov@earthlink.net (Paul Pluzhnikov) (2003-11-08)
Re: Monitor for run-time code execution? newsham@lava.net (Tim Newsham) (2003-11-08)
| List of all articles for this month |

From: Paul Pluzhnikov <ppluzhnikov@earthlink.net>
Newsgroups: comp.compilers
Date: 8 Nov 2003 01:37:08 -0500
Organization: EarthLink Inc. -- http://www.EarthLink.net
References: 03-10-152
Keywords: performance
Posted-Date: 08 Nov 2003 01:37:08 EST

mohitk_3@ureach.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
    x86 instruction.


Cheers,
--
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.