Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jason Patterson <jason@reflections.com.au>
Subject: Re: Gnu g77/gcc on DEC ALPHA running DEC UNIX
Date: 1997/10/22	[thread overview]
Message-ID: <344DC188.37F3E3EE@reflections.com.au> (raw)
In-Reply-To: yeaoh4ih7q5.fsf@fire.nsw.cmis.CSIRO.AU


Hugues Talbot wrote:
>         We use Gcc and DEC C a fair bit around here on 21064
> processors.  In our experience, it is not true that DEC C is
> significantly faster than gcc.  At most 10-20%

Yes, but the 21064 is only a dual issue processor, so the weaknesses in gcc's
instruction scheduler are a lot less important. On the 4 issue 21164 the
difference is much more noticeable.

> The DEC FORTRAN compiler is nothing short of amazing in terms of
> the optimization that it can perform. This is apparently due to the
> structure of the language, which is generally considered easier to
> optimize (but I'm not a specialist of these questions) than C.

FORTRAN has rules which prohibit certain classes of aliasing between function
arguments. So for a FORTRAN function taking two arrays as arguments, the
compiler can safely assume that the two arrays don't overlap, whereas this is
not true in C or C++. Similarly, FORTRAN (77) doesn't really have the concept
of pointers.

Both these things make alias analysis and dependency checking much easier, so
that more things can be done in parallel. This really goes to the extreme on
vector supercomputers (eg Cray), where finding this parallelism is critical:
array addition is a single instruction on a Cray if you can prove that the
arrays don't overlap.

> A factor of more than 30% between DEC C and gcc is hardly believable
> on a complex application.

For most C programs, probably yes, because C programs tend to be more memory
bound (pointer chasing etc). But for inner loops which get software pipelined,
a factor of 2 is quite possible (especially for FORTRAN, but even for C programs).


JASON PATTERSON
 jason@reflections.com.au  http://www.reflections.com.au/~jason

 Imagine that CRAY decides to make a personal computer. It contains 16
 Alpha based processors executing in parallel, has 800 megabytes of RAM,
 100 Gigabytes of disk storage, a resolution of 4096 x 4096 pixels, does
 24bit 3D graphics in realtime, relies entirely on voice recognition for
 input, fits in your shirt pocket and costs $300. What is the first
 question the computer community asks?

 "Is it DOS compatible?"



  reply	other threads:[~1997-10-22  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-16  4:00 Gnu g77/gcc on DEC ALPHA running DEC UNIX eddie scheer
1997-10-16  4:00 ` root
1997-10-16  4:00   ` Jeffrey Potoff
1997-10-20  4:00   ` Glen Turner
1997-10-20  4:00     ` Jason Patterson
1997-10-18  4:00 ` Jason Patterson
1997-10-22  4:00   ` Hugues Talbot
1997-10-22  4:00     ` Jason Patterson [this message]
1997-10-22  4:00     ` Kevin Oberman
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