help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiler options for profiling machine instructions


From: Cindy Evelyn
Subject: compiler options for profiling machine instructions
Date: Thu, 6 Jan 2005 16:24:59 +0800

Hi,

I'm looking for a tool or compiler options if any that can profile the
machine instructions of a dynamic C/C++ program to see the behaviour of
program given a parameter. Since the program is dynamic depending on
the parameter given, i'd like to know the number of instructions
(memory and non-memory) each in exact counts to know which
instructions are executed the most.

I have tried gprof, but gprof only counts the number of function
calls. While gcc -S gives the assembly of the source code only
(static). So, is there a way to profile during execution since the C/C++
program is dynamic in order to get a complete profile of the machine
instructions of the program?

Regards,
Cindy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]