Phoronix: GCC 4.6 Brings Intel Optimizations, AVX, Improvements
While no release announcement has yet to hit the wire, GCC 4.6.0 is now available. Uploaded to the GCC mirrors yesterday afternoon was the GCC 4.6.0 final source packages, right ahead of their planned release which is/was expected to be around Monday. It was only earlier this month that the first release candidate arrives, but this is one rather nice update to the GNU Compiler Collection...
http://www.phoronix.com/vr.php?view=OTI1NQ
Also, it has already been pointed out to you in another thread that it's "-Ofast", not "-0fast".
No matter how I compile unrar with GCC 4.6 the result ends up slower than what GCC 4.5.2 generates.
Not only slower, the resulting binary is larger (just by 4KB, or about 2%).
Yes I reacted at that aswell, maybe he meant that there has been additional optimizations added to core2 by CodeSourcery/Intel which have made it into 4.6. But like you said 'core2' has been available through '-march' and '-mtune' for gcc 4.5.x. In fact when I use '-march=native' on my core i5 machine, gcc 4.5 chooses 'core2' as evident by doing a 'gcc -c -Q -march=native --help=target'.
There's a good change you sole GNU's thunder by announcing the release before the project did
Could you please add ICC benchmark to your results? I've been using ICC recently and I have a feeling that it generates a lot faster code than GCC.Originally Posted by Michael
I'm using GCC 4.5.2 and ICC 12.0.2
Code:$ gcc --version gcc (GCC) 4.5.2 20110127 (prerelease) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ icc --version icc (ICC) 12.0.2 20110112 Copyright (C) 1985-2011 Intel Corporation. All rights reserved.