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,539c04254abf1b37 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-27 13:52:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.com.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <3C74E519.3F5349C4@baesystems.com> <20020221205157.05542.00000012@mb-cm.news.cs.com> <3C763746.CC8B2965@baesystems.com> <3C7D37FD.F67F7067@despammed.com> Subject: Re: compiler benchmark comparisons (was: naval systems) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 208.191.180.40 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr12.news.prodigy.com 1014846708 ST000 208.191.180.40 (Wed, 27 Feb 2002 16:51:48 EST) NNTP-Posting-Date: Wed, 27 Feb 2002 16:51:48 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: [[OUS^[BTRU[RID[N[OJNW@@YJ_ZTB\MV@BZMVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM Date: Wed, 27 Feb 2002 21:51:48 GMT Xref: archiver1.google.com comp.lang.ada:20536 Date: 2002-02-27T21:51:48+00:00 List-Id: "Wes Groleau" wrote in message news:3C7D37FD.F67F7067@despammed.com... > > It would not surprise me if the _average_ C compiler > is faster than the _average_ Ada compiler. The Ada > compiler > > - must generate machine code for constraint checks, > elaboration checks, and stack checks > - must check for initialization and finalization > and the need for exception handlers. > - will do a lot more type checking (if the program > was not poorly designed) > - may do a lot more optimization > - and (to exaggerate for effect) the Ada compiler > will pedantically examine your syntax and semantics > with the proverbial fine-toothed comb and harass > you unmercifully for the smallest pecadillo, while > the C compiler will happily generate code for almost > anything produce by leaning on the keyboard. What I'm trying to get to is what the OP thought was inherent in the language, such that compile-time (not total time to produce the executable) would always be different, and by "different", I believe it is clear he meant "slower". Meaningful comparison requires that we have comparable language semantics and comparable compiler behavior (as determined by the switch settings). That means the list of differences you cite above -- good ones in general -- would not be in play for the code in question. I'm not arguing that Ada compilers are faster in the general case, I'm looking for the OP's language-oriented reasons that would apply to any compiler.