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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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:26:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3c08314d$0$158$9b622d9e@news.freenet.de> <3C0BA624.7A12BFA1@boeing.com> <3C10C26B.AA451459@nbi.dk> Subject: Re: What is faster Ada or C? Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Fri, 07 Dec 2001 11:26:31 EST Organization: http://www.newsranger.com Date: Fri, 07 Dec 2001 16:26:31 GMT Xref: archiver1.google.com comp.lang.ada:17577 Date: 2001-12-07T16:26:31+00:00 List-Id: In article <3C10C26B.AA451459@nbi.dk>, Jacob Sparre Andersen says... > >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. . > Ada.Text_IO.Put_Line ("X = " & Scalar'Image (X)); .. > cout << x << endl; Is that including these lines? These are two *very* different IO systems. I think in his example Robert used C's printf in both programs. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.