-ffunction-sections -fdata-sections vs. string-inst

Benjamin Kosnik bkoz@cygnus.com
Wed Jun 14 11:36:00 GMT 2000


> --- /dev/fd/3	Fri Jan  7 13:49:20 2000
> +++ /dev/fd/4	Fri Jan  7 13:49:20 2000
> -63208	4504	345986	21_strings/append.cc
> +216500	9477	1586636	21_strings/append.cc
> -59032	4088	321122	21_strings/find.cc
> +214852	9061	1564683	21_strings/find.cc

Yeah. I noticed this growth too.

Fortunately, it can be solved by moving the getline and 
instertion/extration operators for string from string-inst.cc to 
misc-inst.cc

Then there is size parity for both approaches.

I am getting some cores in static binaries, and I'm still in the middle 
of trying to see what's going on. I'll post a better patch tonight.

-benjamin



More information about the Libstdc++ mailing list