On Thu, Oct 18, 2007 at 03:30:43PM -0700, Ritu Kamboj wrote:

> 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.

Please don't.  If we did this for everything, we'd end up with a mess.

This is a case where the last few percentage points of performance
take a back seat to maintainability (after all, I'm sure if we
compiled certain files with one compiler or another, or different sets
of flags, we could boost performance too).  I believe the policy is to
use Studio unless the code relies on gcc-specific features.  The
C-team can confirm this for you.

If the performance differences are substantial, please file compiler
bugs (against both compilers as appropriate).

-- 
Keith M Wesolowski              "Sir, we're surrounded!" 
FishWorks                       "Excellent; we can attack in any direction!" 

Reply via email to