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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7e6e919cef50811 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-16 06:00:01 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: gautier_niouzes@hotmail.com (Gautier) Newsgroups: comp.lang.ada Subject: Re: comparing gnat/Ada95 and g77 Date: 16 Mar 2002 06:00:00 -0800 Organization: http://groups.google.com/ Message-ID: <17cd177c.0203160600.6878b267@posting.google.com> References: <3c907c86.6094213@news.demon.co.uk> NNTP-Posting-Host: 217.162.106.50 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016287201 21762 127.0.0.1 (16 Mar 2002 14:00:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Mar 2002 14:00:01 GMT Xref: archiver1.google.com comp.lang.ada:21331 Date: 2002-03-16T14:00:01+00:00 List-Id: Reinert Korsnes: > For the Ada95 program I used: > > gnatmake test1.adb -cargs -O3 -ffast-math Hello! * To compare Ada with Fortran, you should also suppress all checks, i.e. for GNAT: -gnatp . At least with Compaq Ada where I did compare, the Suppress_All pragma brought the perfomance near to the F77 one (a few percents off) * The automatic inlining is often counter-productive, so I would use -O2 rather than -O3, but enable the cross-unit inlining, i.e. -gnatn . HTH ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, address on the Web site!