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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cdc6c2ee911fe77 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ada vs. C++ Date: 2000/02/11 Message-ID: <8818nr$aim$1@nnrp1.deja.com>#1/1 X-Deja-AN: 584551177 References: <38A37C97.9E181025@interact.net.au> X-Http-Proxy: 1.0 x21.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Feb 11 15:09:52 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-02-11T00:00:00+00:00 List-Id: In article <38A37C97.9E181025@interact.net.au>, G wrote: > Has anyone done any measurements on the different speeds and > memory requirements of comparable applications written in C++ > and Ada95. I am learning both languages. No. Compiled procedural languages generally do not have a "speed" associated with them that can be compared to the speed of other such languages. How fast your Ada or C++ code runs depends almost entirely on your design and the quality of your compilers (eg: how well they optimize). There really isn't anything pervasive in either language that can be said to cause every algorithm in one to be slower than the equivalent in the other. Theoreticly it may be easier for compilers to optimize Ada than C++ due to Ada's more restrained approach to pointers and aliasing. But that issue would only have bearing if every compiler vendor spent the exact same amount of effort trying to optimize, which they don't. If you had 2 specific compilers you wanted to compare, that question would be meaningful. Also, if you were to ask about maintainablity or readability, you would have a general issue that could be discussed. This is also a much more meaningful question in these days of desktop supercomputers. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.