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/07 Message-ID: <82hm1c$9a8$1@nnrp1.deja.com>#1/1 X-Deja-AN: 557303054 References: <38473D90.68D8F47@acenet.com.au> <1999Dec3.103807.1@eisner> <82fgh2$mt3$1@nnrp1.deja.com> <1999Dec6.073729.1@eisner> X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Dec 07 00:57:18 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-07T00:00:00+00:00 List-Id: In article <1999Dec6.073729.1@eisner>, Kilgallen@eisner.decus.org.nospam wrote: > On a theoretical basis, it is possible to do anything in > machine language one can do in a higher level language. > However I believe that optimizing for various versions of > a particular chip is higher priority for the folks pushing > that chip than they are for the folks trying to provide a > multi-platform compiler (regardless of whether it emits > assembly language or C code). Nevertheless there are fundamental problems in going through C. For example, one cannot expect a wonderful optimizing C compiler to do much in Ada critical areas like overflow detection and exception handling etc. The point though is that compilers, which generate assembler or machine language, are very different beasts from translators which translate from one high level language to another. In practice there is almost always a loss from the translator approach, often significant. You quote theory, but I am talking from 30 years of experience in compilers, I have NEVER seen a case where language to language translation did not lose efficiency compared to direct compilation. Feel free to quote a counter example, but theorizing is not convincing! Sent via Deja.com http://www.deja.com/ Before you buy.