Mariano Suarez Alvarez <[EMAIL PROTECTED]> writes:
> I don't know if this qualifies as a bugs.
>
> Trying to make a binary smaller, I discovered that a few strings
> appear *many* times in it.
> Telling sh to `strings hhttpd | sort | uniq -c | sort -rn | head -n 30'
> gives me the top 30 included below. This is something like 200K out of
> the 1367996 bytes in hhttpd, which is a 15% aprox. hhttpd was built with
> ghc-3.01 with lots of optimization on (that is, -O -O2-for-C -fvia-C)
> That's too many `Urk's, isn't it?
Coincidentally, I fixed the bug that causes this a couple of days ago.
I assume you're using either i386-unknown-linux or sparc-sun-solaris2
- the object file splitter, which is used to build the libraries, had
a couple of wrong regexps which caused all the constant strings from
the module to be duplicated in each split object. This also happens
to be why split and profiled libraries were so enormous on these two
architectures.
Fixed in the current sources, and in the upcoming 3.02!
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key