1

I have successfully built and using Intel Pin Tool 3.7. I am using the insmix.so tool of the Insmix directory for finding the instruction mix of a user defined function (function name is "myfunc").

What I observe is:
when I compile my test program using gcc (with no -O2 or -O3 options), the tool writes the insmix count of "myfunc" to the tracefile insmix.out. When gcc is used with -O2 or -O3 options nothing about "myfunc" is printed in the tracefile.

Also with the icc compiler no trace is printed about "myfunc".
What could be the reason?

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847

1 Answers1

0

The compiler probably doesn't preserve the symbol for your function. Compile your program with the -g -debug all flags.

nitzanms
  • 1,786
  • 12
  • 35