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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c3a1871d2161925 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-05 00:12:40 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.174.75.178!news-fra1.dfn.de!news.esoc.esa.de!not-for-mail From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: C/Ada performance comparison Date: Thu, 05 Jul 2001 09:12:31 +0200 Organization: not from Colin Paul Gloster if posted after 28th September 2001 Message-ID: <3B44135F.90D9711A@ACM.org> References: <3B3C8E6A.39361C75@labe.felk.cvut.cz> <3B424298.9A7849CF@boeing.com> <3B4351F9.D901BEEC@ACM.org> Reply-To: Colin_Paul_Gloster@ACM.org NNTP-Posting-Host: cgloster.esoc.esa.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:9454 Date: 2001-07-05T09:12:31+02:00 List-Id: Samuel Tardieu wrote: "On 4/07, Colin Paul Gloster wrote: | A factor of 7 implies that the programs are not equivalent. [..] A typical example of that non-equivalence is a user not turning off exception checks. An Ada program with exceptions is not the equivalent of a C program without them." I do not know of anyone who claimed that an Ada program with exceptions is equivalent to a C program sans them. I did say that an equivalent Ada83 program wherein the C and Ada83 versions use dynamic memory can hog a lot more memory than the C version. So far as we know, Tomas Hlavaty's Ada source has no such thing as exception handling. An Ada and a C program can be equivalent and that Ada(95, and 83) has better optional features which would impact performance does not mean that an equivalent program has to use similar resource levels to the C original. The factor of seven may hint that exceptions are used but a hint is not a proof.