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,7b73eb137e4ed638 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-17 15:12:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.162.153.118!news.tele.dk!not-for-mail Message-ID: <3CE58053.2020809@gmx.spam.egg.sausage.and.spam.net> Date: Sat, 18 May 2002 00:12:35 +0200 From: David Rasmussen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020412 Debian/0.9.9-6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Compilers References: <3CE2AF22.2060208@gmx.spam.egg.sausage.and.spam.net> <878z6kq4rr.fsf@deneb.enyo.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: TDC Internet NNTP-Posting-Host: 195.215.62.2 X-Trace: 1021673574 dtext.news.tele.dk 58766 195.215.62.2 X-Complaints-To: abuse@post.tele.dk Xref: archiver1.google.com comp.lang.ada:24315 Date: 2002-05-18T00:12:35+02:00 List-Id: Marin David Condic wrote: > True, but misleading. GNAT and GNU C/C++ may all share the same back end & > hence produce similar code for similar input programs, but that in no way > says anything about how good the code is compared to some other compiler > that works for either Ada, C or C++. Its theoretically possible that the gcc > backend might generate really crappy code and hence Ada and C++ are equally > bad. What does that tell you about the relative efficiency of Ada or C++? > > This is why its totally useless to ask the question "How does Ada compare > against C++ for efficiency...?" The best we can answer is that the Ada > standard doesn't impose anything that is inherently inefficient for the > semantic content delivered and the rest is a matter of comparing one > compiler against another. There are efficient implementations of both Ada > and C++. There are also bad implementations of both languages. We *really* > need to educate developers (who *should* know this by the time they leave > college!) that languages aren't "slow" - only implementations are. > I know that, of course. My question was of a more pragmatic nature. Most languages (ML, Lisp, Java etc.) could have compilers that created as good code on a given platform (say x86), as the best C compilers for the same platform. But in real life, this is not at all the case. So my question was if, in practice, most Ada compilers generate code that is comparable to, say, C++ compilers. The question makes a lot of pragmatic sense. /David