libstdc++, disable streams
Phil Edwards
phil@jaj.com
Wed Jun 5 23:48:00 GMT 2002
On Wed, Jun 05, 2002 at 11:57:22PM +1200, Tony Bryant wrote:
>
> > | I am unconvinced.
> >
> > I'm also skeptical. Rather I would favor compiler/linker
> > improvements.
>
> I get good results using -ffunction-sections in gcc, and
> --gc-sections in ld. Gets down quite small.
libstdc++ already uses -f{function,data}-sections, and at one point passed
--gc-sections when linking. However, the linker's gc caused problems:
http://gcc.gnu.org/ml/gcc/2001-03/msg00401.html
and it's now disabled by default. The bits to enable it for GNU ld are
still in the configury, however, can can be easily tweaked to turn it on
and try it.
If the binutils folk have made fixes to --gc-sections since then, it might
be worth trying.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Libstdc++
mailing list