comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: fast computing with GNAT (?)
Date: 2000/04/07
Date: 2000-04-07T00:00:00+00:00	[thread overview]
Message-ID: <38ED9A6E.5809968F@maths.unine.ch> (raw)
In-Reply-To: 8ck2ur$sgu$1@news.uit.no

Reinert Korsnes wrote:

> The f77 version takes about 7.5 s and the Ada version takes
> about 38 s on my Linux/laptop.
> 
> The actual build commands are:
> 
> f77 -c -O4 -ffast-math -malign-double test1.f
> 
> and
> 
> gnatmake -O4 test1.adb

Ok. Try gnatmake -O4 -ffast-math -gnatp test1.adb

The -gnatp is essential (=pragma suppress(all_checks))
to compare with Fortran!

In addition there are -funroll-loops, -fomit-frame-pointer,
etc. etc. to boost both G77 and GNAT. Maybe a -mpentium
is needed (otherwise GCC will think this is a 386!).

HTH
______________________________________________________
Gautier  --  http://members.xoom.com/gdemont/gsoft.htm




  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 ` Gautier [this message]
2000-04-07  0:00   ` Andreas Schulz
2000-04-07  0:00     ` Gisle S�lensminde
2000-04-07  0:00 ` Robert Dewar
replies disabled

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