Mailinglist Archive: opensuse-programming (33 mails)

< Previous Next >
Re: [suse-programming-e] Profile assembly instructions of a program
  • From: Cindy Evelyn <cevlyn@xxxxxxxxx>
  • Date: Thu, 6 Jan 2005 16:22:31 +0800
  • Message-id: <c0ee0d5e05010600227bc4426f@xxxxxxxxxxxxxx>

I'm looking for a tool or compiler options if any that can profile the
machine instructions of a dynamic 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
program is dynamic in order to get a complete profile of the machine
instructions of the program?


< Previous Next >
Follow Ups