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,1d575f572a099528 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-07 07:16:21 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsrouter.euroconnect.net!newsfeed.song.fi!news.cc.tut.fi!news.helsinki.fi!not-for-mail From: aaro@iki.fi (Aaro Koskinen) Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? Date: 07 Dec 2001 17:16:18 +0200 Organization: University of Helsinki Message-ID: References: <3c08314d$0$158$9b622d9e@news.freenet.de> <3C0BA624.7A12BFA1@boeing.com> <3C10C26B.AA451459@nbi.dk> NNTP-Posting-Host: sirppi.helsinki.fi X-Trace: oravannahka.helsinki.fi 1007738178 13026 128.214.205.27 (7 Dec 2001 15:16:18 GMT) X-Complaints-To: usenet@news.helsinki.fi NNTP-Posting-Date: 7 Dec 2001 15:16:18 GMT X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: archiver1.google.com comp.lang.ada:17570 Date: 2001-12-07T15:16:18+00:00 List-Id: Jacob Sparre Andersen writes: > * Why are the two programs below not equivalent? > * How can I get the Ada program to run as fast as the C++ program? [..] > Compilation...: gnatmake sqrt_timer -O3 -gnatn [..] > for i in 1 .. 10_000_000 loop > X := Sqrt (1.0 + X); > end loop; Did you try with -gnatp? A. -- Aaro Koskinen, aaro@iki.fi, http://www.iki.fi/aaro