On 27 Mar 2000, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Hi all, I've just noticed the size of the binary of lyx-cvs:
> Angus> -rwxr-xr-x 1 aleem users 32768000 Mar 27 11:36 src/lyx*
>
> Angus> That's 32MB!
>
> I get only:
> -rwxr--r-- 1 lasgoutt meval 11968512 Mar 21 15:59 lyx
>
> But that's because I do not use the new-and-improved egcs with fancy
> bloat-o-matic :)
Actually it's because Angus has compiled with exceptions. These are the
sizes of the compile rae branch aren't they, Angus? (exceptions are now
enabled by default for that branch) In which case the answer is: Yes.
Exceptions do add an awful lot of debugging info to a binary. Which is
why the stripped binary's size is so much smaller.
I think the record for binary size would be about 50MB when compiling with
exceptions, SGI's STL, without-included-string and full debugging info.
> Angus> Stripping it: -rwxr-xr-x 1 aleem users 2473984 Mar 27 11:37
> Angus> src/lyx*
>
> Angus> That's 2.5MB.
And? Exceptions have that effect on binary size. Though the exception
mechanism used by gcc makes considerably smaller binaries than the other
common exception scheme -- at least that's what gcc.info says IIRC.
> I get
> -rwxr--r-- 1 lasgoutt meval 3293184 Mar 27 14:12 lyx
>
> That's more than what you have, but alphas tend to have big binaries
> anyway.
Now try compiling with exceptions and see how big it is, JMarc.
Allan. (ARRae)