comp.lang.ada
 help / color / mirror / Atom feed
From: gisle@apal.ii.uib.no (Gisle S�lensminde)
Subject: Re: fast computing with GNAT (?)
Date: 2000/04/07
Date: 2000-04-07T00:00:00+00:00	[thread overview]
Message-ID: <slrn8eriu9.qn7.gisle@apal.ii.uib.no> (raw)
In-Reply-To: 38EDAEC0.412E6CC7@nord-com.net

In article <38EDAEC0.412E6CC7@nord-com.net>, Andreas Schulz wrote:
>Gautier responded to :
>> > 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:
>> > gnatmake -O4 test1.adb
>> Ok. Try gnatmake -O4 -ffast-math -gnatp test1.adb
>
>Maybe you'll be better off with -O3 ?? According to the manual,
>gnat accepts only 0..3 for -O, and I had the impression that
>4+ is read as 0.

Then you got the wrong impression. Anything higher than the highest
optimization level (-O3 for gnat) is read as the highest. Some
C programs around use -O99 to allways get the highest level of
optimization. 

The pentiumGCC project, which is an alternative experimental backend for
gcc, uses -O6 as highest level of optimization.

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


-- 
--
Gisle S�lensminde ( gisle@ii.uib.no )   

ln -s /dev/null ~/.netscape/cookies




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

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