LWN.net Logo

gcc is a skyscraper

gcc is a skyscraper

Posted Nov 2, 2007 11:45 UTC (Fri) by jfj (guest, #37917)
In reply to: gcc is a skyscraper by nix
Parent article: A potential competitor for GCC: pcc

Yes. But take for example, auto-vectorization. icc does it and it gets some amazing results in
SPEC. But the fact is that *any real program that really cares about speed cannot depend on
the compiler to auto-vectorize*; its developers will provide custom assembly with MMX for the
critical parts.  Now that is a red herring. Maybe LTO as well.

Also, I suspect that commercial compilers spend a lot of effort to look good in SPEC. Maybe
they even identify those benchmark programs and generate predefined assembly, I don't know :)

I generally think that timings on real programs is far more useful. There could be a testsuite
that runs some timings on bzip, gzip, ffmpeg encoding/decoding, etc. SPEC's little programs
are to sensitive to small changes.

Finally, I think that open source would benefit more from new gcc extensions and special
attributes.


(Log in to post comments)

gcc is a skyscraper

Posted Nov 2, 2007 13:04 UTC (Fri) by nix (subscriber, #2304) [Link]

LTO definitely isn't a red herring: most programs consist of more than one 
object file and can't easily use --combine (which is far too memory hungry 
to be useful anyway: I tried compiling GCC 4.2.1 with --combine and it ran 
my 1.5Gb Athlon out of memory...)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds