This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Executable size increase using egcs 1.0.1 on Solaris 2.6
- To: Marat Boshernitsan <maratb at cs dot berkeley dot edu>
- Subject: Re: Executable size increase using egcs 1.0.1 on Solaris 2.6
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 10 Mar 1998 22:23:10 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <tfviupmuk3l.fsf@dogwood.CS.Berkeley.EDU>you write:
>
> I am seeing a similar problem when compiling our system on RedHat Linux
> 5.0 and on Solaris 2.5.1. In my case, the increase is pretty dramatic:
>
> linux:
> -rwxrwxr-x 1 maratb ugrad 6933335 Mar 9 16:38 ensemble*
>
> solaris:
> -rwxrwxr-x 1 maratb ugrad 18007448 Mar 9 16:31 ensemble*
>
> Stripping the executable produces a somewhat more manageable binaries:
>
> linux:
> -rwxrwxr-x 1 maratb ugrad 1723500 Mar 10 16:34 ensemble.strip*
>
> solaris:
> -rwxrwxr-x 1 maratb ugrad 2391216 Mar 10 16:34 ensemble.strip*
Linux:
> .stab 2373816 0
> .stabstr 2466949 0
> Total 6634725
About 2/3 of the space for your linux binary is in debug records.
Solaris:
> .stab.index 24 0
> .stab 3066936 0
> .stab.indexstr 24 0
> .stabstr 12183564 0
> Total 17681768
More than 2/3 of the space in your solaris executable is debug records.
jeff