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, MSGID_RANDY 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: Robert Dewar Subject: Re: fast computing with GNAT (?) Date: 2000/04/07 Message-ID: <8cktv5$pku$1@nnrp1.deja.com>#1/1 X-Deja-AN: 607911948 References: <8ck2ur$sgu$1@news.uit.no> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Apr 07 15:13:54 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-07T00:00:00+00:00 List-Id: 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.