On May 11, 2009, at 10:47 AM, Francesco Riosa wrote:
On Monday 11 May 2009 16:53:23 Jay Pipes wrote:
Francesco Riosa wrote:
gcc -c -Q -O3 --help=optimizers | grep funroll-loops
-funroll-loops [disabled]
-funroll-loops is the first branch in the root of evil, don't rely
on it,
even force -O3 isn't as good as it seem often.
Hehe, yes, I'm aware of the dangers :) /me is not a Gentoo user ;)
No comment, you little anti-gentoo fanboy :)
Actually, what about -Os (without -funroll-loops)? -Os does more
optimizations than -O2 but fewer than -O3 in an effort to produce a
smaller foot-print. I have not done an extensive test, but did notice
that it made noticeably smaller binaries when I used it.
I agree, however, for things other than desktop applications that
don't do a lot of context-switching, -funroll-loops is terrible
because it makes the program size so much bigger, which tends to eat
up a lot of cache. Again, I haven't do an extensive test, but that's
what I found out on a high level when I played around with it.
http://funroll-loops.info/
'Nuff Said :)
Tim S.
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp