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,539c04254abf1b37 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-28 21:07:01 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: compiler benchmark comparisons Date: 28 Feb 2002 21:07:00 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0202282107.6f3dd89a@posting.google.com> References: <3C74E519.3F5349C4@baesystems.com> <3C7D37FD.F67F7067@despammed.com> <17247c3d.0202271553.68aaf78d@posting.google.com> <338040f8.0202271819.373f733a@posting.google.com> <338040f8.0202281012.31593a2@posting.google.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1014959221 31428 127.0.0.1 (1 Mar 2002 05:07:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 Mar 2002 05:07:01 GMT Xref: archiver1.google.com comp.lang.ada:20629 Date: 2002-03-01T05:07:01+00:00 List-Id: andreatta@mail.chem.sc.edu (Dan Andreatta) wrote in message news:<338040f8.0202281012.31593a2@posting.google.com>... > In that case, with -O2, the gap between Ada and the rest > widens, yelding these times to > compile the same code: > > GNAT 250 sec > g77 13 > gcc 5 > > The run times were around 0.2 sec for gcc and 0.5 sec for > GNAT (dumping the output). First of all I think you mean gnu-c here (or you can just say c in this context if you like), gcc is the GNU compiler collection, and includes all three of these languages as well as many others. Second, if the gnu-c code runs 2-3 times as fast as the C code it is simply NOT the same code. Usually when we look at examples like this in detail, we discover that what people think are "identical" programs are in fact totally different and apples and oranges are being compared (*) An odd phrase, what's so wrong about comparing oranges on apples. I think I prefer oranges in general :-) :