From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,93d51dcc531df27a X-Google-Attributes: gid103376,public From: Gautier Subject: Re: fast computing with GNAT (?) Date: 2000/04/07 Message-ID: <38ED9A6E.5809968F@maths.unine.ch>#1/1 X-Deja-AN: 607909587 Content-Transfer-Encoding: 7bit References: <8ck2ur$sgu$1@news.uit.no> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 7 Apr 2000 10:21:02 +0100, mac13-32.unine.ch Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-07T00:00:00+00:00 List-Id: 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