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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no 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 11:48:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!iad-peer.news.verio.net!news.verio.net!washdc3-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C7D37FD.F67F7067@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: compiler benchmark comparisons (was: naval systems) References: <3C74E519.3F5349C4@baesystems.com> <20020221205157.05542.00000012@mb-cm.news.cs.com> <3C763746.CC8B2965@baesystems.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 14:48:13 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1014839308 151.168.144.162 (Wed, 27 Feb 2002 14:48:28 EST) NNTP-Posting-Date: Wed, 27 Feb 2002 14:48:28 EST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:20530 Date: 2002-02-27T14:48:13-05:00 List-Id: 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. It would not surprise me, either, if the range of speeds for C compilers in general and for Ada compilers in general is far wider than the average difference. This depends more on the algorithms used for parsing, analyzing, code generation, and optimizing than it does on the language. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau