On Aug 6, 2004, at 11:44 PM, Al Davis wrote:
Despite its popularity in the x86 world, GCC generates horrid code on most, if not all, modern RISC platforms. The vendor-supplied compilers represent a tremendous amount of in-the-know optimization and well-funded development that is specific to their processor architectures.Really????
Really. :)
That's certainly possible. I have enough data points, however, that I don't even bother to install GCC on my Solaris systems anymore.A few years ago, when I had access to a bunch of machines and a bunch of compilers I tried ACS (precursor to Gnucap) on all of them, with both GCC and the native one if possible. The only one that had any significant difference was Sun's. The Sun compiler was about 20% slower than GCC. Has Sun's compiler improved that much, or has GCC gotten that much worse? Perhaps Sun's compiler is better in some cases, and GCC better in others?
Hmm. I'm not much into C++ (I'm a C guy) so I can't speak to that. I'd love to see some examples though.Having said that... Looking at the assembly code for C++, I see that they are still missing some significant optimizations that are not possible in C.