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,1d575f572a099528 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-05 16:34:46 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: What is faster Ada or C? X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C0EB92A.D066A853@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3c08314d$0$158$9b622d9e@news.freenet.de> <871yia7fr2.fsf@deneb.enyo.de> Mime-Version: 1.0 Date: Thu, 6 Dec 2001 00:17:46 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:17492 Date: 2001-12-06T00:17:46+00:00 List-Id: Ted Dennison wrote: > > In article <871yia7fr2.fsf@deneb.enyo.de>, Florian Weimer says... > > > >john.mccabe@emrad.com.nospam (John McCabe) writes: > >> It's been mentioned before on a couple of occasions, but Tartan (as > >> was) wrote a paper identifying why their Ada compiler produced faster > >> code than assembler. > > > >This is pure marketing, of course. Hand-tuned assembler code will > >always be as fast as or outperform code generated by compilers because > >a human programmer can always take the code generated by a compiler if > >he cannot do any better, while the compiler hasn't got this option. > > In the Tartan case they were talking about assembler written from scratch in > assembler. They weren't talking about hand-optimizing compiler output vs. not > doing that. Their assembler comparison was with human-written code for a specific project. While interesting, I found it more impressive that their Ada compiler produced faster code than their C compiler, which they marketed based on its excellent optimization. -- Jeffrey Carter