Intel C/C++ compiler vs. GNU gcc/MS Visual Studio
the_real_tigga writes "OpenMag features a benchmark review of the Intel C/C++ compiler as opposed to gcc on linux and Microsoft Visual Studio compiler on Windows XP. Not surprisingly (for me at least), icc beats them both, with dramatic performance improvements. Too bad they chose to review gcc version 2.95, and not the 3.x series, which is known to produce faster code. What is surprising, even AMD CPUs benefit from the icc-compiled code. There is another version of the article here,
and they provide a download of the used tools , so you can try it at home too!"
> What is surprising, even AMD CPUs benefit from the icc-compiled code.
This isn't suprising, as AMD CPUs have always shown remarkable increases in performance with icc (sometimes even more than equivalent intel chips). I guess AMD does a really good job in making the Athlon a x86 chip.
It's actually Kuck and Associates that was acquired by Intel, not Kuch and Associates as listed in the article.
It would be nice to see the same comparisons but with compilers that aren't over 3 years old.
They said gcc 3.x was beta software, it has more regression testing than windows have security testing.
GCC 2.95??? in 2003???
what are these guys thinking? i mean, it may have been the compiler that came with the Suse 7.3 they were using, but still. Suse is on 8.1 now which does ship with gcc 3.2.
I'm pretty sure that Visual .NET isn't beta software anymore, and neither is GCC 3.x ... this is somewhat out of date. However, somebody who wants a Slashdotting could just download the aforementioned tools and write their own up to date comparison ... (note that I don't want a ./ing)
:p.
All things considered, though, I'm fairly sure GCC hasn't gotten quite *that fast* in the elapsed time since the article was written
No, the intel compiler has been able to successfully compiler the kernel for the past two versions (7 & 6). Check out the recent discussion on the kernel mailing list/ kernel /0301.2/0846.html
http://www.uwsg.indiana.edu/hypermail/linux
Now we just need Spike ported from the alpha.
re:
Doesn't gcc also have the same property when running under Linux or windows? (for the OS-independant parts of your code, obviously)
Although the main thrust of the article is to compare the new intel compiler to gcc and visual studio, they are also talking about comparing performance accross platforms - their initial comparison is gcc on Linux vs Visual Studio on Windows (no mention of what optimizations are performed, what other service are running, what nice levels the programs are executed at, whether they are measuring user cpu time or total execution time, and so on)
It would be nice to see tests varying each of these variables individually, or showing all the possible combinations:
On a (big) plus point - this article does at least show us some error margins on their measurements (none of this "Graphics card A lagged behind with a mere 47.6, but graphics card B stormed ahead with a score of 47.7" nonsense which seems to be all too common in most reviews)
emerge dev-lang/icc
This story is really old and no longer relevant. Wouldn't be surprised if it was a dupe of a several-year-old story thats already appeared on slop-dot.
......and Microsoft Visual Studio compiler on Windows XP. Not
They changed the name from ".Net" to ".Not"? surprisingly (for me at least),
GCC 3.2.x vs. Intel C++ 7 would have been interesting. This just isn't.
e l_gcc_bench2.html
Go here for GCC 3.2 vs. Intel 7 information:
http://www.coyotegulch.com/reviews/intel_comp/int
GCC has done quite a bit to catch up.
Legalize the constitution. Think for yourself question authority.
... Intel has the nice compiler that generate really fast code. Presumably it's getting more done per CPU cycle on average by being smarter about scheduling and not wasting so many cycles.
Intel also has this fancy new hyperthreading thing built into its newest CPUs that speeds things up by (very roughly speaking) letting one thread use another thread's wasted CPU cycles.
Does a vastly more efficient compiler make hyperthreading ineffective? Is there some sort of balance that a really great compiler would need to strike between the fastest code and the code that will work best on Intel's fancy new CPU's if the app your are going to run is multi-threaded?
Davo -- Free speech, free software, AND free beer.
However, somebody who wants a Slashdotting could just download the aforementioned tools
I'm sorry; I don't have $1,000 for any version of Microsoft Visual Studio.
Oh, you mean the "standard edition" for $100? That's known to generate inefficient code; Microsoft doesn't even claim that the "standard edition" optimizes your code one bit.
Will I retire or break 10K?