Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29233 Discussions

Removing debug info when compiled with debug

sgongola
Beginner
817 Views
Is there a way to remove debugging information from an obj, lib, dll or exe if the item was originally created with debugging information enabled? Maybe something like the unix strip command?

thank you
sol
0 Kudos
3 Replies
Steven_L_Intel1
Employee
817 Views
Most of the debugging information is in a separate PDB file, so I don't think this is too useful.
0 Kudos
sgongola
Beginner
817 Views
Compile was done with /nopdbfile.
Also: can the /dbglibs compile option be overridden in a subsequent link step?
With a PDB file, does the object still have some debug information in it.

thank you
sol
0 Kudos
Steven_L_Intel1
Employee
817 Views
I think with PDB. all the info is in the PDB. I suppose you can re-link with /nodebug. I don't know of a strip tool.
You can use the linker's /NODEFAULTLIB option to tell it to ignore all the default libraries, or specific ones, then supply the ones you want.
0 Kudos
Reply