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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c86eb13dd395066 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: CRC in Ada? Date: 1997/03/04 Message-ID: #1/1 X-Deja-AN: 223117629 References: <1997Mar2.220652@nova.wright.edu> <331bf6ce.2832564@news.logica.co.uk> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-03-04T00:00:00+00:00 List-Id: << _IF_ you are doing the CRC on a file (as I was), I would advise you to consider performance. I found (exactly the same algorithm) implemented in C took an order of magnitude seconds less to execute than the Ada equivalent.>> Well of course no one can see what the two pieces of code you compared are, since you did not post them, so we cannot tell whether the problem came from inappropriate coding choices on your part, or bad code generation in the Ada compiler you were using -- it certainly was nothing to do with C vs Ada per se as languages. In any case, using any decent Ada 95 compiler, this should not be an issue, if you code using the same approach and general abstraction level in the C code and in the Ada code. Indeed, the availability of packed arrays in Ada (but not in C) may allow you to raise the semantic level of the Ada code without penalty (but this is not necessarily the case,, just a possibility).