Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lar3ry@zk3.dec.com (lar3ry gensch)
To: "Bruce W. Mohler" <bruce.w.mohler@saic.com>
Subject: Re: DU V4.0E Freeware CD-ROM?
Date: 1999/11/03	[thread overview]
Message-ID: <7vpdtu$hfo$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 381DF2AA.D0E17539@saic.com

[Posted and mailed]

In article <381DF2AA.D0E17539@saic.com>,
	"Bruce W. Mohler" <bruce.w.mohler@saic.com> writes:
> Ken Farmer wrote:
>> 
>> http://www.tru64.org has a few links to pre-compiled software.

> Here's my ignorance showing.  I'm assuming that Digital's default C
> compiler is cripplied like other vendor's and only useful for
> recompiling the kernel.  Is this true?

I may be biased (working for COMPAQ), but why would you assume that
Compaq's C compiler is crippled?  You are correct in that it's quite
capable of recompiling the kernel.  It is also quite capable of
compiling many open source packages "right out of the box."

In fact, when I use such a package, my configure command is usually
something like:

    CC=cc CFLAGS="-fast -O4" ./configure --other-config-options

This usually works for most open source packages, and it generates
pretty good code.

Remember, the Alpha chip is a RISC chip, and benefits much from having
"smart compilers" do things like optimizing instruction scheduling,
etc.  It is in COMPAQ's best interest to get the best performance out
of this chip, and Compaq C is one of the tools that helps do this.

> If so, then I *do* want gcc.  However, I've heard that gcc for the Alpha
> is not as optimized as DEC's C compiler.

I would assume that GCC, trying to be everything for every processor,
wouldn't have all the processor-specific optimizations for Alpha that
Compaq's compilers would have.  You would have to benchmark your own
applications, compiling with Compaq C and GCC to see if this holds
true for the work that you do.

> Then again, gcc is more "portable" in that I have the same version
> (2.7.2.2) on all my UNIX boxes so I can compile the same code
> everywhere.

If you write consistently to a standard, say ANSI or ISO C, your
should find that your code is portable without having to rely on GCC. 
Unfortunately, some open source packages do not write to the ANSI
standard, hoping to glean some additional optimizations and error
checking by using GCC-introduced non-standard features (I guess the
idea is "GCC runs everywhere, so why not?").  These packages SHOULD
have such code wrapped within preprocessor checks for GNU, but not all
are very faithful in this.

Another place where you may find "portability" problems is when you
use GCC as a C++ compiler, along with libg++ -- libg++ contains a lot
of stuff that isn't in the Standard C++ libraries, and it sometimes
doesn't compile on non-GNU compilers.

Please note that I work for Compaq, although not for the Compaq C
group.  But, as an employee, my opinions may be biased.

-- 
Larry Gensch					      Larry.Gensch@digital.com
Compaq Computer Corporation                           As usual, the
110 Spit Brook Road ZKO3-2/W17                        standard disclaimers
Nashua, NH 03062                                      apply, etc.



  parent reply	other threads:[~1999-11-03  5:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-28  4:00 DU V4.0E Freeware CD-ROM? Jerry Hudgins
1999-10-29  4:00 ` Massimo Gais
1999-10-29  4:00   ` Jerry Hudgins
1999-10-29  4:00     ` Bruce W. Mohler
     [not found]       ` <7FFBA0BED0033EEB.441D9DB91AB3E4A1.1EF7A08F5528919F@lp.airnews.net>
1999-11-01  5:00         ` Bruce W. Mohler
1999-11-01  5:00           ` SVD
1999-11-01  5:00           ` Andrew Hobson
1999-11-02  5:00           ` Mark Gelinas
1999-11-04  5:00             ` Tim Mooney
1999-11-03  5:00           ` lar3ry gensch [this message]
1999-10-29  4:00     ` Bruce W. Mohler
1999-11-01  5:00 ` Jeff Donsbach
1999-11-02  5:00   ` Bruce W. Mohler
1999-11-03  5:00   ` T.E.Dickey
1999-11-05  5:00     ` Keith Moodie
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox