[indiana-discuss] [xwin-discuss] Size reduction of binaries (e.g. gcc "-fmerge-all-constants") ... / was: Re: SUNWxorg-mesabinary sizegrowth in nv_107: gcc vs.Sun cc
Roland Mainz
roland.mainz at nrubsig.org
Tue Feb 24 09:09:37 PST 2009
Alan Coopersmith wrote:
> Roland Mainz wrote:
> > Do you use "-xtrconst" yet ?
>
> That flag has been on by default in the X builds for several years.
Ok...
> > BTW: Can you check how much the gcc MESA build shrinks if you use
> > "-fmerge-all-constants" ?
>
> Maybe later
Erm... AFAIK there are two goals:
1) Switch MESA from gcc to Sun Studio
2) Reduce the size of the MESA binaries
I'm not sure whether [2] can (currently) be better archived using a gcc
build with options "-Os" and "-fmerge-all-constants" (since Sun Studio
has currently no equivalent for gcc's "-fmerge-all-constants" and
somehow isn't able to reduce the code size used by |inline| functions
which are only consumed once (which is IMO a bug)).
Maybe the next time the LiveCD runs out of space someone should look at
MESA again...
> I've solved the problem I need to today with -xspace,
> and have a lot more pressing things to solve right now.
Ok... ;-(
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
More information about the indiana-discuss
mailing list