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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,168a42f49aadcfd8 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Does ObjectAda optimize at all?? Date: 1998/08/17 Message-ID: <6r9glc$ln4$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 381719392 References: <6qcl1i$qij$1@nnrp1.dejanews.com> <35CE22D9.113EAEEC@cts.com> <6qmulq$heb$1@nnrp1.dejanews.com> <35d4797b.244364@SantaClara01.news.InterNex.Net> <6r2a41$prp$1@nnrp1.dejanews.com> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Aug 17 15:02:04 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT; Gateway2000) Date: 1998-08-17T00:00:00+00:00 List-Id: In article , dewar@merv.cs.nyu.edu (Robert Dewar) wrote: > In my experience, programmers often do not know enough to know whether > such manual optimizations help or hurt. They often end up not only > trashing the code, but also making it run nmore slowly. For example, > it takes a careful analysis of icache usage to know whether loop > unrolling is helpful. Exactly. I think I'm familiar enough with my own ignorance to aviod this personally. But its awfully hard to stop other folks from doing this in their own code when they know: o The code in question is called several times from a high-frequency routine o The complier is unable to do the optimization for them. o If they manually "optimize" the code later, they are liable to accidentally introduce new bugs (at a very late stage in development). Thus I think it vital that developers have some knowledge of and faith in the optimization abilities of their compiler. If a compiler doesn't do much in the way of optimization, it clearly falls down in this respect. T.E.D. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum