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 08:16:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.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 16:16:53 +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 1007741813 9398 129.241.83.82 (7 Dec 2001 16:16:53 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 7 Dec 2001 16:16:53 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17574 Date: 2001-12-07T16:16:53+00:00 List-Id: On Fri, 07 Dec 2001 14:21:47 +0100, Jacob Sparre Andersen wrote: > > Related to that, I have two simple, apparantly equivalent > programs written in respectively Ada and C++, where the GNU > Ada and C++ compilers find it difficult to produce even > roughly equivalent binary code or processing speed. > > * Why are the two programs below not equivalent? > * How can I get the Ada program to run as fast as the C++ > program? Did you use the same gcc compiler? -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/