comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: GNAT & GCC performace (bad news)
Date: 1999/12/02
Date: 1999-12-02T00:00:00+00:00	[thread overview]
Message-ID: <3846F523.6910E6D@averstar.com> (raw)
In-Reply-To: B46CA6A1.2991%Harald.Schmidt@tomcat.de

Harald Schmidt wrote:
> 
> Hi everybody,
> 
> I am playing around with Ada95 since nearly two weeks
> for an upcoming project, trying to select the best
> language for a headless server application. I am using
> CodeBuilder from Feldman's Ada book which comes with
> gnat and gnu c. My experience while compiling and running
> the dhrystone benchmark was that the C version of the
> Dhrystone was nearly twice as fast as the Ada version, and
> this sounds really bad. Has anyone any idea why this
> is so and how to solve this problem.

Try suppressing all run-time checks.  Note also that Dhrystone
for Ada and Dhrystone for C are necessarily not identical programs.
Dhrystone is designed for comparing compilers for the same language,
not for comparing compilers for different languages.  It may be
that the Ada version of Dhrystone is different in some performance-relevant
way from the C version, or it is just the additional run-time checking
that Ada is providing, that makes the difference.

> ...  What I was expecting,
> because gnat isn't a compiler env. but a to-C(++) translator,
> the performance decrease about ten to twenty percent but
> not 50 percent.

You will quickly be inundated with answers to this, but GNAT
is *not* a translator to C++, it is a translator to machine code,
just like gcc.  It shares the same backend as gcc, but it does not
use the GNU C or C++ front end.

> 
> Harald

-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  reply	other threads:[~1999-12-02  0:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-02  0:00 GNAT & GCC performace (bad news) Harald Schmidt
1999-12-02  0:00 ` Tucker Taft [this message]
1999-12-02  0:00 ` David Starner
1999-12-02  0:00 ` James E. Hopper
1999-12-03  0:00   ` Robert A Duff
1999-12-04  0:00   ` Robert Dewar
1999-12-04  0:00     ` Harald Schmidt
1999-12-02  0:00 ` nabbasi
1999-12-02  0:00 ` Dmitriy Anisimkov
1999-12-03  0:00 ` Robert Dewar
1999-12-03  0:00 ` Mats Weber
1999-12-03  0:00 ` Geoff Bull
1999-12-03  0:00   ` Larry Kilgallen
1999-12-06  0:00     ` Robert Dewar
1999-12-06  0:00       ` Larry Kilgallen
1999-12-06  0:00         ` Robert A Duff
1999-12-07  0:00           ` Robert Dewar
1999-12-07  0:00             ` Tucker Taft
1999-12-08  0:00               ` Robert Dewar
1999-12-08  0:00                 ` Ada2001
1999-12-09  0:00             ` Wes Groleau
1999-12-10  0:00               ` Robert Dewar
1999-12-10  0:00                 ` Arthur Evans Jr
1999-12-11  0:00                   ` Robert Dewar
1999-12-17  0:00               ` Richard Kenner
1999-12-07  0:00         ` Robert Dewar
1999-12-03  0:00   ` Geoff Bull
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox