How do I generate symbol information to use with Linux version of Intel's VTune Amplifier?

I am using Intel VTune Amplifier XE 2011 to analyze the performance of my program. I want to be able to view the source code in the analysis results, and the documentation says I need to provide the symbol information. Unfortunately, it does not state how to generate that symbol information when compiling my program. In the Windows version of VTune all I had to do was provide the ".pdb" file that Microsoft Visual Studio would generate. Is there a similar kind of file I can create using g++ to provide this symbol information?


  • gcc -g <your stuff> should be all that's necessary. However I used an older version.

    The command line options for the newer stuff is here

    EDIT: This SO answer is probably more valuable than anything here.