Re:C++11 and The Long-Term Viability Of GCC Questioned
by 0x0 on Saturday January 26, 2013 @04:37PM
(#5121852)
Are they really that much better? I remember hitting a bunch of incorrectly generated code for MSVC++ at least back in the 6.0 days. Like, the disassembly revealed dangerously incorrect code.
[ Parent
| on HN ]
Re:C++11 and The Long-Term Viability Of GCC Questioned
by frisco on Saturday January 26, 2013 @05:28PM
(#5122057)
I don't know much about MSVC++, but Intel's compilers are widely considered the most advanced C++ compilers, as long as you stick with Intel hardware. There was some controversy over it generating bad assembly when targeting AMD cores, but this is a non-issue for companies like Boeing and Raytheon, who will be using custom hardware anyway.
Re:C++11 and The Long-Term Viability Of GCC Questioned
by 0x0 on Saturday January 26, 2013 @05:48PM
(#5122123)
The controversy was that it generated a CPUID check for "GenuineIntel" at runtime, and fell back to extremely poorly generated code (like, 386-level, almost 286-level style) for all other CPUs, as far as I remember.
Borderline intentional sabotage against AMD, because they can obviously do better and I don't believe they are unaware of the capabilities of AMD CPUs.
(edit: And they should probably be checking for features instead of vendor IDs anyways. It's like checking for Firefox in the user-agent and sending animated GIFs instead of WebGL if you're on Chrome)
Here's some more info: http://en.gentoo-wiki.com/wiki/Intel_C%2B%2B_Compiler#Uncrip...
Re:C++11 and The Long-Term Viability Of GCC Questioned
by gillianseed on Saturday January 26, 2013 @07:43PM
(#5122505)
Intel is widely known to produce the most _optimized_ code for their own cpu range. That doesn't mean that they are the 'most advanced c++ compilers'.
It was generating bad code for anything that wasn't Intel.