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.9 required=5.0 tests=BAYES_00 autolearn=ham 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-01 20:49:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C09B2D6.663C10BD@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? References: <3c08314d$0$158$9b622d9e@news.freenet.de> <9uau3a$79113$1@ID-25716.news.dfncis.de> <3c093895$0$160$9b622d9e@news.freenet.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 02 Dec 2001 04:49:34 GMT NNTP-Posting-Host: 209.86.208.238 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1007268574 209.86.208.238 (Sat, 01 Dec 2001 20:49:34 PST) NNTP-Posting-Date: Sat, 01 Dec 2001 20:49:34 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sat, 01 Dec 2001 20:49:28 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:17292 Date: 2001-12-02T04:49:34+00:00 List-Id: Heiko Hamann wrote: > > Well, _any_ difference? Hey, this is unbelievable! The difference between > the program compiled with > standard options and the program compiled with -gnatp and -O3 is terrific. > The acceleration is about 70%! The new compilation needs only about 1/4 of > time the old one needed. I can't believe it. > The new program is about 1/5 smaller than the old one. Most of this difference is probably due to optimization. GNAT produces very poor code with no optimization. Even -O1 often makes a significant difference. Suppressing run-time checks rarely saves more than about 10%. -- Jeff Carter "I blow my nose on you." Monty Python & the Holy Grail