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 10:47:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? Date: Fri, 7 Dec 2001 18:47:22 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3c08314d$0$158$9b622d9e@news.freenet.de> <3C0BA624.7A12BFA1@boeing.com> <3C10C26B.AA451459@nbi.dk> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1007750842 15634 129.241.83.82 (7 Dec 2001 18:47:22 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 7 Dec 2001 18:47:22 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17601 Date: 2001-12-07T18:47:22+00:00 List-Id: On Fri, 07 Dec 2001 17:11:15 GMT, Ted Dennison wrote: > In article , Preben > Randhol says... >> >>Note that the gcc compiler Ada (GNAT) uses is 2.8.1 while the g++ I >>have is 2.95 and 3.0 (unfortunately not 2.8.1). > > Whoa! So we are really talking about two completely different back ends here. > > I'd suggest C-izing it (not too tough, just change the IO I think), and > compiling it with gnat's gcc. Either that, or take the latest GCC with Gnat and > g++ from the CVS tree and try that. I changed it to C and used gnatgcc and got 544ms while the Ada program with Ada.Numeric.Aux uses 2794ms with -gnatp. Preben -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/