From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ff4c91ba714126d1 X-Google-Attributes: gidfee84,public From: lar3ry@zk3.dec.com (lar3ry gensch) Subject: Re: DU V4.0E Freeware CD-ROM? Date: 1999/11/03 Message-ID: <7vpdtu$hfo$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 544997412 References: <381925B2.4B509182@e-farm.com> <381943D7.6A38E626@na.astro.it> <38194C04.3C48AF8A@e-farm.com> <3819D540.E69901E0@saic.com> <7FFBA0BED0033EEB.441D9DB91AB3E4A1.1EF7A08F5528919F@lp.airnews.net> <381DF2AA.D0E17539@saic.com> To: "Bruce W. Mohler" Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Reply-To: larry.gensch@digital.com Newsgroups: comp.unix.osf.osf1 [Posted and mailed] In article <381DF2AA.D0E17539@saic.com>, "Bruce W. Mohler" 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.