egcs bloat on i586-pc-linux-gnulibc1...
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Thu Sep 25 17:35:00 GMT 1997
As promised, I checked by building egcs-970922 (+ recommended patches) both
with itself and with egcs-970907, with and without -fno-exceptions in the
last case. The results for cc1, cccp and genemit (the only three
executables that built for all three cases) are as follows (6-fe is
gcc-2.90.06, 9-fe is gcc-2.90.09, 9-fne is gcc-2.90.09 +
-fno-exceptions). The other CFLAGS where -O2 -fomit-frame-pointer
-mpentium; binutils-2.8.1.0.1, libc-5.4.38, ld.so-1.9.5. The following are
the Total-s for size -A of each program.
6-fe 9-fne 9-fe
cc1 : 1443461 1460719 ( 1.19%) 2249705 ( 55.9%)
cccp : 102022 121298 (18.9%) 148540 ( 45.6%)
genemit : 19924 39255 (97.0%) 45789 (120%)
The percent increase for cc1 is reasonable with -fno-exceptions (but I'd
prefer for it to disapear :-), the others are simply outrageous. It looks
like there is some more or less constant part to the increase from 6-fe to
9-fne? Most of the difference in sizes is due to the .stab, .stabstr
sections for cc1; the .eh_frame section contributes little. And the .stab,
.stabstr increases are almost the same for cc1 and genemit.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616
More information about the Gcc
mailing list