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 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-14 02:38:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.ns.com (John McCabe) Newsgroups: comp.lang.ada Subject: Re: comparing gnat/Ada95 and g77 Date: Thu, 14 Mar 2002 10:37:59 GMT Organization: Emrad Ltd Message-ID: <3c907c86.6094213@news.demon.co.uk> References: NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1016102222 nnrp-10:5512 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:21204 Date: 2002-03-14T10:37:59+00:00 List-Id: On Thu, 14 Mar 2002 10:47:18 +0100, Reinert Korsnes wrote: >Hi, > >Could anybody try these two programs (Ada and Fortran) >and see if it is possible to make the Ada version (via compile >options) to run as fast as the Fortran version under Linux, gnat >and g77 ? What do you mean by "as fast as"? Do you have some figures already? What are the differences? I can't see any reason (other than constraint checking which can be switched off) why the actual calculations should be any different, but you might find that the IO takes longer in Ada than in Fortran because it is obviously a bit more complicated (3 subroutine calls instead of 1) and, as you're doing this within a *huge* loop, any slight degradation here will be significant.