Intel(R) Compilers for Linux* OS

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 the Intel(R) C/C++ and Fortran compilers, versions 8.0, 8.1 and 9.0 on IA-32 and IA-64 architecture platforms.

To generate code with symbol and line number information using the Intel(R) C/C++ compilers:

Use the -g option to specify the debug information level (levels 2 and 3 are recommended).

Command-line example:

icc -g -o test test.c  

For compilations targeted to IA-32 architecture systems, the compiler uses  -gstabs as the default, and for IA-64 architecture systems, it uses the default  -gdwarf option.

To generate code with symbol and line number information using the Intel(R) Fortran compilers:

Use the -g option to specify the debug information level (levels 2 and 3 are recommended)

Command-line example:

ifort -g -o test test.f

Related Topics