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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b12a5cee4778f63 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: GNAT & GCC performace (bad news) Date: 1999/12/10 Message-ID: <82pro2$3i0$1@nnrp1.deja.com>#1/1 X-Deja-AN: 558709781 References: <38473D90.68D8F47@acenet.com.au> <1999Dec3.103807.1@eisner> <82fgh2$mt3$1@nnrp1.deja.com> <1999Dec6.073729.1@eisner> <82hn65$a5o$1@nnrp1.deja.com> <384FEBF9.5F4F6BD2@ftw.rsc.raytheon.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Dec 10 03:23:50 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-12-10T00:00:00+00:00 List-Id: In article <384FEBF9.5F4F6BD2@ftw.rsc.raytheon.com>, Wes Groleau 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.