Intel(R) C/C++ Compiler

Complete performance analysis requires symbol and line number information.

This topic explains how to generate symbol and line number information in the executable file, using Intel(R) C/C++ compiler (icc/icpc) from the command line.

Note that Intel compiler can produce only DWARF 2 debug format.

To generate the DWARF 2 debug format with the Intel C++ compiler, enter:

icpc -g <source_file> -o <output_file>

where <source_file> is your .cpp file.

To generate the DWARF 2 debug format with the Intel C compiler, enter:

icc -g <source_file> -o <output_file>

where <source_file> is your source .c file.