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,dd5ebdd28e541cfa X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Gnat optimizes better than gcc C? Date: 1999/12/17 Message-ID: <83djjr$qqo$1@nnrp1.deja.com>#1/1 X-Deja-AN: 561939612 References: <385800DC.DE033376@lisco.com> <3859a321.0@news.pacifier.com> X-Http-Proxy: 1.0 x34.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Dec 17 15:07:43 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-12-17T00:00:00+00:00 List-Id: In article <3859a321.0@news.pacifier.com>, "DuckE" wrote: > Check out "The Big Online Book of Linux Ada Programming" at > http://www.vaxxine.com/pegasoft/homes/kburtch.html Hmm. Section 7.4 shows an example of an algorithm coded in Ada and C where the optimizer can make the Ada code run twice as fast as the C. I knew it was theoreticaly possible for this to happen, due to the extra info Ada's types provide the compiler. However, I was under the impression that Gnat/gcc wasn't able to take advantage of this information. Is this right? -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.