comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: GNAT & GCC performace (bad news)
Date: 1999/12/10
Date: 1999-12-10T00:00:00+00:00	[thread overview]
Message-ID: <82pro2$3i0$1@nnrp1.deja.com> (raw)
In-Reply-To: 384FEBF9.5F4F6BD2@ftw.rsc.raytheon.com

In article <384FEBF9.5F4F6BD2@ftw.rsc.raytheon.com>,
  Wes Groleau <wwgrol@ftw.rsc.raytheon.com> wrote:
> But how much (if any) of this information is also lost by
> going from Ada to the common intermediate format used by the
> GCC suite?

The answer to this is, less and less as time goes on. We teach
the gcc backend more details about Ada, and also the backend
improves its capabilities. For example, when we move GNAT to
the new merged GCC, the backend has much more capabilties
for dealing with aliasing, and we will be able to pass aliasing
information along from the GNAT front end to take advantage
of the more precise aliasing information possible in a strongly
typed language.

With C, you are stuck with the definition of the language
permanently, you can't go teaching C more Ada, or adding
features to C to help the Ada-to-C translation process.

Still, I do want to emphasize that I think it is very valuable
to have this capability (Ada to C translation) because it allows
Ada 95 to be used on a wider variety of targets. Note that of
course the preferred implementation of the Intermetrics front
end is to wed it to an Ada specific code generator as is done in
the Aonix and Green Hills products, but it is certainly
attractive to have an alternative path on processors for which
no such specialized Ada code generator is available! Yes, there
are some losses from this approach, but the Intermetrics
implementation shows that these can be minimized in practice to
the point where the resulting compiler is quite practical for
production use.

Robert Dewar


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~1999-12-10  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 ` nabbasi
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 ` David Starner
1999-12-02  0:00 ` Tucker Taft
1999-12-02  0:00 ` Dmitriy Anisimkov
1999-12-03  0:00 ` Robert Dewar
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 [this message]
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
1999-12-03  0:00 ` Mats Weber
replies disabled

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