Subject: Re: Have anyone tried to build NetBSD/sparc64 on Solaris 10/Sparc with SunStudio 11 host compiler yet?
To: NetBSD Port Sparc64 <port-sparc64@NetBSD.org>
From: Dave McGuire <mcguire@neurotica.com>
List: port-sparc64
Date: 05/31/2007 13:55:16
On May 31, 2007, at 1:36 PM, Vicky Staubly wrote:
>>>>> But considering that Solaris 10 is shipped with a fine working GCC
>>>>> it is probably a waste of time anyway.
>>>>   ...assuming one compiler is just as good as the other, anyway.
>>> The compiler will only be used to bootstrap the toolchain. If you  
>>> manage
>>> to use SUNWspro for that you might get faster builds on Solaris  
>>> SPARC.
>>> But the binaries produced by the build should be the same.
>>
>>  Am I misunderstanding you, or are you suggesting that the  
>> binaries produced by the SunStudio compiler will be the same as  
>> those produced by GCC?
>>
>>  If that's what you're suggesting, you're way, way off, I'm sorry  
>> to say.
>
> No, he's suggesting (I'm pretty sure), that the Sun compiler would  
> only
> be used to build gcc, so gcc might compile the kernel faster, but  
> since
> it's gcc generating the kernel, it should output the same code as a  
> gcc
> that was compiled by some other compiler (including gcc itself).

   Ahhhh yes, of course...this is 100% correct.  I apologize for my  
misinterpretation.

> You'd have to rewrite all the makefiles and build scripts if you  
> wanted
> to get NetBSD itself (kernel and userland) compiled by the Sun  
> compiler,
> and it's likely to not work as-is (inline-assembly and other compiler
> dependencies).

   Yes, it looks like it'd be a nightmare. :-(

          -Dave

-- 
Dave McGuire
Port Charlotte, FL