comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: fast computing with GNAT (?)
Date: 2000/04/07
Date: 2000-04-07T00:00:00+00:00	[thread overview]
Message-ID: <8cktv5$pku$1@nnrp1.deja.com> (raw)
In-Reply-To: 8ck2ur$sgu$1@news.uit.no

In article <8ck2ur$sgu$1@news.uit.no>,
  Reinert.Korsnes@npolar.no wrote:
> Hi,
>
> I am comparing GNAT and g77 on linux (RedHat 6.1).
>
> Is it possible to use GNAT in "fast-math mode" similar
> to using g77 like this:
>
> g77 -c -O -ffast-math -malign-double test1.f

A difference like this can be the result of many things, so
careful analysis is needed.

-malign-double can make a huge difference, but is gcc only,
since it violates the standard ABI rules.

Checks can often make a difference

-O4 is too high, we usually find that -O2 is fastest

The trig functions definitely do more in Ada than in Fortran
in terms of error checking and required accuracy. Try simply
importing the Fortran routines if you are satisfied with the
accuracy and lack of error checking in these routines.


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-04-07  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-07  0:00 fast computing with GNAT (?) Reinert Korsnes
2000-04-07  0:00 ` Robert Dewar [this message]
2000-04-07  0:00 ` Gautier
2000-04-07  0:00   ` Andreas Schulz
2000-04-07  0:00     ` Gisle S�lensminde
replies disabled

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