Preparing for Debugging

Use this option to direct the compiler to generate code to support symbolic debugging. For example:

icpc -g prog1.cpp

The compiler does not support the generation of debugging information in assembly files. When you specify this option, the resulting object file will contain debugging information, but the assembly file will not.

Note

This option changes the default optimization from -O2 to -O0.

See Also