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:45:37 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!t-online.de!news.dtag.de!unlisys!news.snafu.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? Date: Fri, 7 Dec 2001 16:45:36 +0000 (UTC) Organization: GMUGHDU Message-ID: <9uqrng$s7k$1@a1-hrz.uni-duisburg.de> References: <3c08314d$0$158$9b622d9e@news.freenet.de> <3C0BA624.7A12BFA1@boeing.com> <3C10C26B.AA451459@nbi.dk> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1007743536 28916 134.91.4.34 (7 Dec 2001 16:45:36 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 7 Dec 2001 16:45:36 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:17579 Date: 2001-12-07T16:45:36+00:00 List-Id: Jacob Sparre Andersen wrote: : * Why are the two programs below not equivalent? : * How can I get the Ada program to run as fast as the C++ : program? : with Ada.Numerics.Generic_Elementary_Functions; : #include do the two sqrts in effect refer to the same routines? : Ada.Text_IO.Put_Line ("X = " & Scalar'Image (X)); : cout << x << endl; have you tried with redirection to a null device, or with no output? (terminal I/O might really slow thing down.) Georg