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,1d575f572a099528 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-02 09:46:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!wanadoo.fr!not-for-mail From: "Bertrand Augereau" Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? Date: Sun, 2 Dec 2001 18:49:53 +0100 Organization: Wanadoo, l'internet avec France Telecom Message-ID: <9udpdr$acu$1@wanadoo.fr> References: <3c08314d$0$158$9b622d9e@news.freenet.de> Reply-To: "Bertrand Augereau" NNTP-Posting-Host: afontenayssb-103-1-1-107.abo.wanadoo.fr X-Trace: wanadoo.fr 1007315195 10654 217.128.72.107 (2 Dec 2001 17:46:35 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 2 Dec 2001 17:46:35 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:17306 Date: 2001-12-02T17:46:35+00:00 List-Id: > The fastest program is the one that use the right algorithm and a good > compiler. So if your question is: Is there some good Ada compilers around that > does high optimization ? Then the answer is definitly yes. Yes, but the OP wants to do integer and bit twiddling intensive computations, which is a particular field. My advice is that, for this kind of low-level stuff, First, try to stay in the cache, whatever the language. Prefetch if possible. Second, try to use vector operations by using the right vector-friendly algorithm (you'll likely need assembly for that). So you can use whatever language you prefer, if you follow those 2 rules. If you don't put assembly for the inner loops and want to stay at a higher level, chances are that on your platform, you got a C++ compiler with better codegen/optimizer (Intel C++ on x86 for instance). Try both.