ld flag that gives ~40% startup time boost
Patrick McFarland
diablod3 at gmail.com
Thu Jun 22 23:17:57 BST 2006
On Thursday 22 June 2006 17:09, John Richard Moser wrote:
> Scott James Remnant wrote:
> > On Thu, 2006-06-22 at 21:31 +0100, James Laver wrote:
> >> On a sidenote, I'm rather fond of -O3 where it works (sqlite, for
> >> example), but i typically go -O2 for most of my compiles.
> >
> > -O7 gives the best gains, obviously.
>
> I dunno, libpng seems to favor -O99...
>
> -O3 does things that make binaries load and run slower sometimes, but
> under some conditions makes them faster. Among other things I think it
> unrolls loops (which can cause excessive page faults during looping).
Which makes an interesting intersection with -Os which goes for smallest
optimized code size instead of fastest optimized code size. Apple, of course,
uses -Os because it rocks hard on PPC.
> > Scott
>
> --
> All content of all messages exchanged herein are left in the
> Public Domain, unless otherwise explicitly stated.
>
> Creative brains are a valuable, limited resource. They shouldn't be
> wasted on re-inventing the wheel when there are so many fascinating
> new problems waiting out there.
> -- Eric Steven Raymond
>
> We will enslave their women, eat their children and rape their
> cattle!
> -- Bosc, Evil alien overlord from the fifth dimension
--
Patrick McFarland || www.AdTerrasPerAspera.com
"Computer games don't affect kids; I mean if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills and
listening to repetitive electronic music." -- Kristian Wilson, Nintendo,
Inc, 1989
More information about the ubuntu-devel
mailing list