Boost logo

Boost-Build :

From: C. Andy Martin (andy_at_[hidden])
Date: 2004-11-24 17:33:13

Rene Rivera wrote:
> Similar results on my code... Which I forgot to mention. Don't have
> exact figures with me at this time... But the size difference between
> debug (which has all the symbols for me) and release (which removes all
> symbols except the dllexport ones) is more than 80%.

The numbers I quoted were from _release_! The debug build right now is
45 MB! Correct me if I'm wrong, but the discussion was about the dynamic
symbol table (used for exporting symbols to the dynamic loader). The
static symbol table is used by the compile-time linker and by the
debugger. The static symbol table isn't needed to execute code, so you
can always strip it out.

If we could strip out unneeded symbols (symbols which don't need to be
referenced by other modules) it seems you could really shrink the size
of the dynamic table. Of course, the reason the .dynstr section is so
big is that the mangled template names are so long. Here is an example
obtained with objdump -T:


This string contains 439 characters! (for just one symbol!)



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at