comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Gnat on OpenVMS
Date: 1999/05/21
Date: 1999-05-21T00:00:00+00:00	[thread overview]
Message-ID: <1999May21.063742.1@eisner> (raw)
In-Reply-To: 3744EFE6.79F99405@wanadoo.fr

In article <3744EFE6.79F99405@wanadoo.fr>, Daniel Thonon <Daniel.Thonon@wanadoo.fr> writes:

> I also looked at the code generated by gnat on Digital UNIX (with
> different -O levels and chip dependant optimizations) and found the same
> kind of problem. For example, just by counting the number of statements
> in a loop, I found a ratio of more than 2 between gnat and DECAda. The
> GEM code was quite simple to understand, but the gnat code was very
> complicated, with several unnecessary jumps, for example.

Be very careful with Alpha (and other RISC machines, I would presume)
to avoid seat-of-the-pants judgements about what is complicated.  It
may be that you have studied this in detail, or maybe not, but what
seems like an obvious cost comparison can often be subtle.  Looking
at GEM (DEC) code from various compilers one can find things like
NOP instructions inserted, not for "wait state" purposes but to make
branch targets have quadword alignment.

I would certainly not claim that the machine code you describe is good,
because I have not seen it.  For Alpha code I have seen, however, what
seemed questionable to me at the start actually had a reason for being
that way.  It is of course possible that you are much more expert than
I in the timing of the Alpha chip, but I make this post anyway on the
theory that someone else out there may be less expert :-).

> We did not find the same conclusion, either on simple benchmarks or with
> our complete application. In some case, gnat is faster, but overall it
> is really slower.

Yes, your application is the real test, since it was your organization
that wants the computing done, not the SPEC committee.

Larry Kilgallen




  reply	other threads:[~1999-05-21  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-18  0:00 Gnat on OpenVMS Thierry Lelegard
1999-05-18  0:00 ` Larry Kilgallen
1999-05-19  0:00   ` Robert Dewar
1999-05-19  0:00   ` Gautier
1999-05-19  0:00 ` Robert Dewar
1999-05-21  0:00   ` nickerson
1999-05-22  0:00     ` Robert Dewar
1999-05-24  0:00       ` nickerson
1999-05-24  0:00         ` Robert Dewar
1999-05-25  0:00         ` Larry Kilgallen
1999-05-22  0:00     ` Larry Kilgallen
1999-05-19  0:00 ` Daniel Thonon
1999-05-19  0:00   ` Thierry Lelegard
1999-05-19  0:00     ` Larry Kilgallen
1999-05-20  0:00       ` Robert Dewar
1999-05-20  0:00     ` Robert Dewar
1999-05-21  0:00       ` Daniel Thonon
1999-05-21  0:00         ` Larry Kilgallen [this message]
1999-05-19  0:00 ` Robert Dewar
1999-05-21  0:00 ` nickerson
1999-05-22  0:00   ` Robert Dewar
1999-05-22  0:00     ` Thierry Lelegard
1999-05-22  0:00       ` Robert Dewar
1999-05-22  0:00       ` Larry Kilgallen
1999-05-23  0:00         ` Robert Dewar
1999-05-24  0:00           ` nickerson
1999-05-25  0:00             ` Robert Dewar
1999-05-23  0:00         ` Robert Dewar
1999-05-24  0:00           ` nickerson
1999-05-24  0:00             ` Mike
1999-05-25  0:00               ` Matthew Whiting
1999-05-25  0:00             ` Larry Kilgallen
1999-05-25  0:00               ` Thierry Lelegard
1999-05-27  0:00                 ` Pascal Obry
replies disabled

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