https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #126 from Peter Bisroev <peter.bisroev at groundlabs dot com> ---
(In reply to dave.anglin from comment #123)
> Just for reference, these are the stage1 sizes for cc1 and cc1plus on hpux:
> gcc-10:
> -bash-4.4$ /opt/gnu/bin/size cc1 cc1plus
>    text    data     bss     dec     hex filename
> 55224904        5591924  360896 61177724        3a57f7c cc1
> 61375866        5977916  363928 67717710        4094a4e cc1plus
> 
> gcc-9:
> -bash-4.4$ /opt/gnu/bin/size cc1 cc1plus
>    text    data     bss     dec     hex filename
> 43213435        4681964  366408 48261807        2e06aaf cc1
> 46694968        4986436  369184 52050588        31a3a9c cc1plus
> 
> On linux, the final -O2 file sizes are about 17M.  The ia64 linux sizes are
> about 35M.
> 
> Don't know why ia64 sizes are huge.

(In reply to dave.anglin from comment #123)
> Don't know why ia64 sizes are huge.

Hi Dave, these are the sizes from my tests. They seem to be a little smaller
than yours except for one (please see below) for some reason.

These are the sizes for my 32bit binaries on IA64 HPUX for GCC 4.7.4 that match
the 'make check' result that I've sent. Bootstrapped with host compiler set to
aCC.
   text    data     bss     dec     hex filename
21159330         382188 2066112 23607630        168394e ./gcc/cc1
23554890         405856 2077840 26038586        18d513a ./gcc/cc1plus
21159330         382188 2066112 23607630        168394e ./prev-gcc/cc1
23554890         405856 2077840 26038586        18d513a ./prev-gcc/cc1plus
34531022         159496 2067656 36758174        230e29e ./stage1-gcc/cc1
37750763         163656 2079432 39993851        26241fb ./stage1-gcc/cc1plus

These are the sizes for 4.7.4 bootstrapped with host compiler set to GCC 4.7.4
built above on the same machine. I did not have to use -Os because maxtsiz was
increased as per previous recommendation.
   text    data     bss     dec     hex filename
21159506         382188 2066112 23607806        16839fe ./gcc/cc1
23555066         405856 2077840 26038762        18d51ea ./gcc/cc1plus
21159506         382188 2066112 23607806        16839fe ./prev-gcc/cc1
23555066         405856 2077840 26038762        18d51ea ./prev-gcc/cc1plus
208396488       1100422 2066048 211562958       c9c31ce ./stage1-gcc/cc1
229695199       1167498 2077792 232940489       de263c9 ./stage1-gcc/cc1plus

As can be seen above, stage1 binaries are just under 9 times the size of final
-O2 compiled binaries. I believe you have mentioned that this is due the use of
-O0 for stage1 compilation. But is such increase as seen above expected?

Thanks!

Reply via email to