Use the -g option to direct the compiler to generate code to support symbolic debugging. For example:
IA-32 systems: prompt>icc -g prog1.cpp
Itanium(TM)-based systems: prompt>ecc -g prog1.cpp
The compiler does not support the generation of debugging information in assembly files. If you specify the -g option, the resulting object file will contain debugging information the assembly file will not.