Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

gcc vs. Sun's Forte C Compiler

by DeaconBlues (Monk)
on Mar 27, 2001 at 22:35 UTC ( [id://67577]=perlquestion: print w/replies, xml ) Need Help??

DeaconBlues has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

My company is considering buying Sun's Forte C++ to replace gcc/g++ on the SPARC/Solaris 7 boxes that we work on. The only use of these compilers so far is to install CPAN modules. I think this is crazy. Nothing's wrong with gcc. What arguments can you lend me to avoid a possible catastrophe.

Also tell me if I am wrong. Maybe you can get a better compiler if you are willing to drop a couple of thousand dollars.

Thanks for your help

Replies are listed 'Best First'.
Re: gcc vs. Sun's Forte C Compiler
by oneiros (Scribe) on Mar 27, 2001 at 22:56 UTC

    Yesh. I think that's rather extreme. gcc has been working very well for me on my sparc machines. The only problem as far as perl goes, is that perl will need to be compiled with gcc in order for binary modules (also compiled with gcc) to link in.

    Sun's compiler is optimised for sparc processors, and can compile 64bit elf binaries, the stable gcc compiles 32 bit and may produce less efficient binaries. I can't say how much performance would be gained or lost either way; I haven't done any benchmarking.

    Perhaps some other monks have done some testing...

Re: gcc vs. Sun's Forte C Compiler
by BlueLines (Hermit) on Mar 28, 2001 at 07:15 UTC
    Sun's compilers install in /opt by default, so there's no reason that you couldn't have both (sun cc and gcc) working on the same machine. But if you're only using the compiler for CPAN modules, then it is a huge waste of money.


    BlueLines

    Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.
Re: gcc vs. Sun's Forte C Compiler
by coreolyn (Parson) on Mar 28, 2001 at 19:13 UTC

    While there is a performance gain Sun's cc and supporting libs often don't play nice with CPAN modules or Perl source install's. Especially on development boxes gcc is the way to go. You may want to point out that the increased code performance isn't going to do much about the usual bottlenecks like io and other connectivity issues

    Rebuilding the codebase with Sun's C++ when moving code out of development might be the better solution. This allows the greatest speed to market for the code development via good 'ol reliable gcc, plus saves a fortune on Sun licensing.

    coreolyn
Re: gcc vs. Sun's Forte C Compiler
by scottstef (Curate) on Mar 28, 2001 at 22:41 UTC
    Talking with several of our admins here here, the only issue we have seen with gcc has been trying to compile bind 9 series. We have both versions, however for the limited amount of stuff we ever compile, we usually use gcc.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://67577]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found