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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,9adfbb907494972e X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,9adfbb907494972e X-Google-Attributes: gid103376,public From: seebs@solutions.solon.com (Peter Seebach) Subject: Re: Ada to C/C++ translator needed Date: 1996/09/30 Message-ID: <52oorc$hid@solutions.solon.com>#1/1 X-Deja-AN: 186238337 references: <32499FA0.4B5E@magic.fr> <52feul$os2@goanna.cs.rmit.edu.au> <01bbad6e$67743f20$32ee6fcf@timhome2> <52o1ve$gra@goanna.cs.rmit.edu.au> organization: Usenet Fact Police (Undercover) reply-to: seebs@solon.com newsgroups: comp.lang.c,comp.lang.ada Date: 1996-09-30T00:00:00+00:00 List-Id: In article <52o1ve$gra@goanna.cs.rmit.edu.au>, Richard A. O'Keefe wrote: >If an expensive optimising C compiler (developed for a specific machine, >with *intimate* knowledge of that machine) can't beat a free Ada compiler >which runs on a wide range of machines, when given idiomatic code for a >fairly straightfoward program, what would _you_ conclude? That the expensive optimising C compiler was a ripoff. :) (However, if you're discussing SparcWorks C, you've failed to establish that it's a C compiler. A C compiler *MUST* diagnose the line static int i = 1 ? 1 : (++j); as a constraint violation, but at least the version we have doesn't, even in "maximally conforming ANSI mode". Clearly, it is not a C compiler.) >*Every* time I have bothered to write the same thing in Ada and C, I have >obtained the same results on this machine. There isn't anything about the >SPARC that should tip the balance in favour of Ada. Quite the reverse, in >fact. Didn't you know? It's an acronym for "Sun's Project Ada Revenge Chip", and was designed to make things run 10 times faster in Ada than they would have otherwise. :) -s -- Peter Seebach - seebs@solon.com - Copyright 1996 - http://www.solon.com/~seebs Unix/C Wizard - send mail for help, or send money for consulting! The *other* C FAQ, the hacker FAQ, et al. See web page above. Unsolicited email (junk mail and ads) is unwelcome, and will be billed for.