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 X-Google-Thread: 103376,93d51dcc531df27a X-Google-Attributes: gid103376,public From: gisle@apal.ii.uib.no (Gisle S�lensminde) Subject: Re: fast computing with GNAT (?) Date: 2000/04/07 Message-ID: #1/1 X-Deja-AN: 607962369 Content-Transfer-Encoding: 8bit References: <8ck2ur$sgu$1@news.uit.no> <38ED9A6E.5809968F@maths.unine.ch> <38EDAEC0.412E6CC7@nord-com.net> Organization: University of Bergen, Norway Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-07T00:00:00+00:00 List-Id: 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