Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Gerald A. Feldman" <gaf@highway1.com>
Subject: Re: horrible "cc -O" bug (DU 3.2c)
Date: 1997/05/11	[thread overview]
Message-ID: <33763487.7250953E@highway1.com> (raw)
In-Reply-To: 5l33qi$6fg$1@news.nyu.edu


Roy Smith wrote: Any compiler code generation bug is "really
disturbing".  This has to be any

> programmer's worst nightmare.  The thought of doing any kind of
> software
> developent on a compiler that isn't doing 100% rock-solid code
> generation
> gives me the willies.  I can live with slow code.  I can live with
> missing
> language features.  I can live with parsers unable to handle
> arbitrarily
> complex expressions.  But if it compiles, I have to *know* it compiled
>
> correctly.

First of all, from looking at the code, it does not appear to be a code
generation bug at all. It is only a bug if the code beyond the && would
cause a side effect, such as invoke a function, modify a variable, or
cause an exception. In this case, it works nicely because the alpha
chips can dual issue the code.  In the 5 years I have been in the Unix
Development Environment group, I have not heard of a bug where the
second argument is evaluated before the first. You could say the same
thing about the way the Alpha compilers pass arguments to functions. The
first 6 arguments are passed as registers, not pushed on the stack.

> We're running DU-4.0B on our new alpha boxes.  Is this a problem in
> the
> compiler that ships with that system?  Should I be pointing my ftp
> connection at MIT and downloading gcc if I want to be able to sleep
> nights?

DU 4.0B ships with DECC as the default compiler and ACC as a backup. GCC
also ships with DU. I think you will find that code generated by gcc is
slower than code generated by DECC or ACC.BTW: The newer Alpha chips
quad issue instructions, which means that the chip can execute 4
instructions in parallel. All Digital compilers and assemblers schedule
the generated code for optimal execution. The instructions are
rearranged based on latencies and other interactions. The scheduler
knows the issue rules, and tries to schedule the instructions to take
advantage of this. This is over and above normal compiler optimizations.
Both ACC and DECC go through a large number of tests and soaks. Not only
their own suites, but they are tested in many different standards
validation suites, and are fully certified by the appropriate standards
bodies. Both are very stable in V3.2C as well as on 4.0B. If the bug
that was described actually is a bug, I doubt that even the kernel could
be built.
--
+----------------------------------------------+
|  Jerry Feldman <gaf@highway1.com>            |
|  Boston Computer Solutions and Consulting    |
|  http://gaf.ne.highway1.com/                 |
+----------------------------------------------+




  parent reply	other threads:[~1997-05-11  4:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-09  4:00 horrible "cc -O" bug (DU 3.2c) Mark Bartelt
1997-05-09  4:00 ` Jonathan Rozes
1997-05-09  4:00 ` John Hascall
1997-05-10  4:00   ` Gerald Feldman
1997-05-11  4:00   ` Roy Smith
1997-05-11  4:00     ` Michael C. Grant
1997-05-11  4:00     ` Gerald A. Feldman [this message]
1997-05-11  4:00       ` Roy Smith
1997-05-12  4:00         ` Mark Bartelt
1997-05-12  4:00           ` Andy Isaacson
1997-05-12  4:00             ` John Reinitz
1997-05-13  4:00             ` Mark Bartelt
1997-05-12  4:00         ` Jeff Sullivan USG
1997-05-12  4:00           ` Gerald A. Feldman
1997-05-12  4:00       ` Jeff Sullivan USG
1997-05-12  4:00       ` Peter Kocourek
1997-05-12  4:00       ` Bob Vickers
     [not found] ` <5l7hap$7la@usenet.pa.dec.com>
1997-05-12  4:00   ` Gerald A. Feldman
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