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-Thread: 103376,3f0365b3a22c7556 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail Message-ID: <434CA2A2.2040405@spam.com> From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Heap vs Stack allocation References: <434c2709$0$21298$626a54ce@news.free.fr> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 12 Oct 2005 05:44:10 GMT NNTP-Posting-Host: 67.3.218.45 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1129095850 67.3.218.45 (Tue, 11 Oct 2005 22:44:10 PDT) NNTP-Posting-Date: Tue, 11 Oct 2005 22:44:10 PDT Xref: g2news1.google.com comp.lang.ada:5556 Date: 2005-10-12T05:44:10+00:00 List-Id: Randy Brukardt wrote: > That said, I think the more information that the programmer can provide the > compiler about what they're doing, the better code that can be generated. > I'm still convinced that, given a big enough budget, an Ada compiler can > produce faster and smaller programs than that for any of the other > "contenders". But you'd need an Ada-specific optimizer to take full > advantage of the information that Ada provides, and it's probably not cost > effective to create those. There seems to be an existence proof for this: the Tartan Ada-83 compilers had excellent optimizers. It was a Tartan compiler that resulted in the "Ada Beats Assembler" article; the compiler produced smaller and faster code than hand-optimized assembler from a team of experts. There was also an interesting article on Tartan's benchmarks that they used to sell their C compilers. The Ada version was faster than the C version. The article listed the Ada features that allowed this. True arrays was one such feature. I'm speaking from memory; I don't have the articles around. They were in /Ada Letters/ in the late 1980s or early 1990s. -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail 01