6 Jan
2005
6 Jan
'05
08:22
Hi, 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? Regards, Cindy