On Thursday 18 October 2007 18:30, Ritu Kamboj wrote: > Hi, > > We did some performance testing on MySQL and found that Sun Studio > gives good performance on SPARC platform . However, on x64 platform > ,gcc gives better performance. > > Hence, I want to use Sun compilers to compile MySQL on SPARC and > gcc compilers to compile MySQL on x64 platform. > > What is the best way for me to implement this in Makefile.sfw for > MySQL. > > Thanks very much for your help and guidance.
I would be very surprised to learn that gcc (with appropriate flags) would give better performance than Sun Studio (with appropriate flags), even on ia32/amd64. But that's besides the point. The main point would be: gcc C++ and Sun Studio C++ are not ABI compatible. MySQL contains quite a bit of C++ code. Building MySQL with gcc/g++ would make its libraries binary incompatible (and unlinkable) with any other C++ application built with Sun Studio. The second main point would be: building MySQL with Sun Studio on SPARC and with gcc/g++ on ia32/amd64 would result in binaries for the same Integration built with different compilers. That is an even bigger mess than the C++ ABI problem. It also means that MySQL on SPARC can be linked with applications built with Studio, whereas MySQL on ia32/amd64 cannot. So, as Keith has suggested, sticking with Sun Studio for MySQL is a much better idea. --Stefan -- Stefan Teleman 'Nobody Expects the Spanish Inquisition' KDE e.V. -Monty Python stefan.teleman at gmail.com
