Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a new (to us) solaris 10 box running on T4 cpus. Our software stack is Perl/Oracle based. We now have to install GCC 4.9. I wish to optimise this for the T4 CPU. I think the following configure will work:

configure --prefix=/app/org/sfw --enable-languages=c,c++ --with-cpu=niagara4

Is there anything else I need to do to get an optimised build for gcc 4.9? Any pitfalls I need to be made aware of?

share|improve this question

If you really need to "optimize for T4 CPU" then I would guess that Solaris Studio compiler can create code more accurately optimized for T4 than can GCC. Just a guess. Sun/Oracle repeatedly claim that Solaris Studio creates faster code than does GCC. One can imagine this to be true given that T4 is their own CPU. Dunno.

There will not be a license cost to use Solaris Studio.

Have a look at this: Solaris development host on how to set up a Solaris Development Host with either GCC or Solaris Studio.

Also: Solaris 10 is rather old now. You'll have an easier life (because of the software package repos) if you use Solaris 11. Just my two cents on that one.

share|improve this answer
Thanks. The client insist on Solaris 10 I'm afraid. I'll look at the Sun resources you provided. – Dr.Avalanche May 21 '14 at 6:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.