Use /DBGPACK to eliminate redundant debug type information. The linker takes the debug type information from all object files and needed library components, and reduces the information to one entry per type. This results in a smaller executable output file, and can improve debugger performance.
| /DBGPACK option syntax |
|---|
|
Default is: /NODBGPACK
Abbreviations are: /DB|/NODB
Performance consideration: Generally, linking with /DBGPACK slows the linking process, because it takes time to pack the information. However, if there is enough redundant debug type information, /DBGPACK can speed up your linking because there is less information to write to the output file.
When you specify /DBGPACK, /DEBUG is turned on by default.