* Re: DU V4.0E Freeware CD-ROM?
1999-11-01 5:00 ` Bruce W. Mohler
@ 1999-11-01 5:00 ` Andrew Hobson
1999-11-01 5:00 ` SVD
` (2 subsequent siblings)
3 siblings, 0 replies; 15+ messages in thread
From: Andrew Hobson @ 1999-11-01 5:00 UTC (permalink / raw)
On Mon, 01 Nov 1999 12:06:02 -0800, "Bruce W. Mohler" <bruce.w.mohler@saic.com> said:
> 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?
Not that I'm aware of. I'm compiled gcc for every version of 4.0
without problem using the default C compiler.
Drew
--
"All together for individualism!"
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: DU V4.0E Freeware CD-ROM?
1999-11-01 5:00 ` Bruce W. Mohler
1999-11-01 5:00 ` Andrew Hobson
@ 1999-11-01 5:00 ` SVD
1999-11-02 5:00 ` Mark Gelinas
1999-11-03 5:00 ` lar3ry gensch
3 siblings, 0 replies; 15+ messages in thread
From: SVD @ 1999-11-01 5:00 UTC (permalink / raw)
On Mon, 01 Nov 1999 12:06:02 -0800, Bruce W. Mohler <bruce.w.mohler@saic.com>
wrote:
> Ken Farmer wrote:
> >
> > http://www.tru64.org has a few links to pre-compiled software.
> >
> > Ken
> >
>
> Thanks, Ken. It seems like they don't have a copy of pre-compiled gcc.
> That's really my goal. I figure once I have gcc, I can port everything
> else I need (at least that's what I do for other species of UNIX).
just grab the gcc-2.95.1 source and build it.
> 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?
not im my experince. compaq's CC is actually really nice and has some options
for migration that arn't in gcc
> 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 havn't had good luck with gcc on any of our system. anything from slow code
to broken bins results. (i think, from poor alignment)
--
Shadow Dolphin <dolphin@dolphinparadise.net>
"In a just cause, there are no failures; there are only delayed successes."
- Isaac Asimov
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: DU V4.0E Freeware CD-ROM?
1999-11-01 5:00 ` Bruce W. Mohler
1999-11-01 5:00 ` Andrew Hobson
1999-11-01 5:00 ` SVD
@ 1999-11-02 5:00 ` Mark Gelinas
1999-11-04 5:00 ` Tim Mooney
1999-11-03 5:00 ` lar3ry gensch
3 siblings, 1 reply; 15+ messages in thread
From: Mark Gelinas @ 1999-11-02 5:00 UTC (permalink / raw)
"Bruce W. Mohler" <bruce.w.mohler@saic.com> writes:
> Ken Farmer wrote:
> >
> > http://www.tru64.org has a few links to pre-compiled software.
> >
> > Ken
> >
>
> Thanks, Ken. It seems like they don't have a copy of pre-compiled gcc.
> That's really my goal. I figure once I have gcc, I can port everything
> else I need (at least that's what I do for other species of UNIX).
>
> 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?
>
Not at all. The Digital C compiler is fully functional as shipped. The C++
compiler, however, does require a separate license to operate.
> 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.
>
Correct. Even the newest egcs compiler cannot provide anywhere close to the
optimization provided by the DEC C compiler. And the DEC C compiler keeps
getting better. With Tru64 UNIX 4.0E many applications run faster (up to 30%)
than they did with the previous compiler. Diagnostics were greatly enhanced,
covering many more error/warning/info cases, and making existing messages
much easier to understand. With the port to Alpha/Linux, the compiler now
understands most, if not all, compiler flags used by gcc, so it is now a
drop-in replacement for gcc/egcs on Alpha/Linux platforms.
I see no need to use gcc/egcs.
> 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.
>
I've never had problems compiling with DEC C. A few compiler flags
may need changing, but I've never seen an application fail to compile
under DEC C that did work with gcc. When I find hardcoded compiler
calls in a Makefile, substituting 'cc -std1' for 'gcc -Wall' is
usually all it takes to get a clean build.
> I still think I'm interested in gcc for Tru64 UNIX...
>
Your choice. I used gcc for a long time on DEC ULTRIX, because it was
still evolving long after ULTRIX stopped. But with Tru64 UNIX, I see
no need to keep using it. YMMV.
> Bruce
>
> --
> Bruce W. Mohler <>< 858-826-2675 (voice)
> SAIC/ITS/Server Support 858-826-7806 (fax)
> Sr UNIX system administrator 888-781-5697 (pager)
> Semper fi mailto:bruce.w.mohler@saic.com
> Of course my password is the same as my pet's name.
> My dog's name is pit5%dept, but I change it every 90 days.
--
Mark Gelinas Compaq Computer Corporation
EMail: gelinas@zk3.dec.com 110 Spit Brook Road, ZKO3-3/V08
Phone: +1 (603) 884-1511 Nashua, NH 03062-2698 USA
Views expressed are my own, and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: DU V4.0E Freeware CD-ROM?
1999-11-02 5:00 ` Mark Gelinas
@ 1999-11-04 5:00 ` Tim Mooney
0 siblings, 0 replies; 15+ messages in thread
From: Tim Mooney @ 1999-11-04 5:00 UTC (permalink / raw)
In article <sjkzowwd33t.fsf@bismuth.zk3.dec.com>,
Mark Gelinas <gelinas@bismuth.zk3.dec.com> wrote:
> "Bruce W. Mohler" <bruce.w.mohler@saic.com> writes:
> > 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.
> >
> I've never had problems compiling with DEC C. A few compiler flags
> may need changing, but I've never seen an application fail to compile
> under DEC C that did work with gcc.
That's a bit optimistic, unfortunately. I far prefer to use DEC C
vs gcc on Tru64 Unix, but sometimes I just can't because the
software in question takes advantage of gcc-isms or uses features
that gcc/egcs will pass but that other compilers (DEC C and compilers
from other vendors) will (correctly, in most cases) flag as an error.
Case in point: ORBit, the GNOME CORBA component. If you can get
that to build using DEC C on a recent version of Tru64 Unix without
modifying the source code, I'm all ears. In fact, if you can get
it to build with DEC C even with substantive modifications to the
source code, I'm still listening. It *will* build if you use gcc.
You can get ORBit and its prerequisites (glib and possibly libxml)
from ftp://ftp.gnome.org/pub/GNOME/sources
Another example:
01:48pm dogbert /tmp$cat foo.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int foo=1;
switch (foo) {
case 0 :
printf("I doubt it\n");
break;
case 1 :
printf("Hi there\n");
break;
default:
}
exit(0);
}
01:48pm dogbert /tmp$gcc -Wall foo.c -o foo
01:49pm dogbert /tmp$./foo
Hi there
01:49pm dogbert /tmp$cc -portable -std foo.c -o foo
cc: Error: foo.c, line 20: Invalid statement. (badstmt)
}
--------^
What `cc' is objecting to is the default: label with no statement after
it. Based on how I read the C specs, cc is right. The fact is that
there are quite a few packages out there (many of them GNOME related)
that use this (a default: label with no code after it). Most of the
package authors are really good about accepting patches for stuff like
this, but that's not always the case.
Anyway, I'm not trying to get down on Compaq's compiler or the
compiler group. I think DEC C is an *excellent* compiler, and I've
had really good luck with getting problems I've reported (even
right here in this newsgroup) looked into and even fixed (kudos
to Jeff Sullivan for investigating several compiler problems I've
reported in the past). Jeff and others regularily "patrol" this
group and other spots looking for reported problems regarding the
compilers and other peices of the OS and ways to improve your
products, and that's to be commeneded.
I just think your optimism may be a bit overzealous in this case.
;-)
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: DU V4.0E Freeware CD-ROM?
1999-11-01 5:00 ` Bruce W. Mohler
` (2 preceding siblings ...)
1999-11-02 5:00 ` Mark Gelinas
@ 1999-11-03 5:00 ` lar3ry gensch
3 siblings, 0 replies; 15+ messages in thread
From: lar3ry gensch @ 1999-11-03 5:00 UTC (permalink / raw)
To: Bruce W. Mohler
[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.
^ permalink raw reply [flat|nested] 15+ messages in thread