How to suppress creation of unwanted .DWF files

With the Windows 11.9 PGI release, the compilers produce .DWF files even if one uses the -Mnodwarf option:

``````Reading rcfile C:\lang\PGI64\win64\11.9\bin\pgf95_rc
-Mnodwarf           Do not add DWARF debug information
``````

Is it possible to suppress creation of these files by making changes to the settings in one of the *rc files?

Thanks.

Hi mecej4,

The .dwf files are part of the stripping process, so you can simply turn this step off (i.e. add -nostrip flag). However, your resulting executable may be bloated. Another option would be to have the output of the dwf file be sent to a temporary file instead. To do this, modify the ‘nt64rc’ configuration file. Look for the “strip” command:

``````command strip is
help(Dwarf debug processing)
tool(strip)
tempfile(\$OFILE)
set(DFILE=\$dirname(\$input)/\$basename(\$input).\$DEBUGSUFFIX)
arguments(\$STRIPARGS \$OFILE \$input \$DFILE);
``````

Add a second ‘tempfile’ line as below

``````command strip is
help(Dwarf debug processing)
tool(strip)