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,7767a311e01e1cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 22 Oct 2006 13:31:08 -0500 Date: Sun, 22 Oct 2006 14:24:25 -0400 From: Jeffrey Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization References: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> <9Qb_g.111857$aJ.65708@attbi_s21> <434o04-7g7.ln1@newserver.thecreems.com> <4539ce34$1_2@news.bluewin.ch> <453A532F.2070709@obry.net> <9kfq04-sgm.ln1@newserver.thecreems.com> <1161517716.455743.223200@b28g2000cwb.googlegroups.com> <453bb145$0$5716$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: <453bb145$0$5716$9b4e6d93@newsspool3.arcor-online.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <2jps04-ggi.ln1@newserver.thecreems.com> NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-r2RrPHRPf0UoxuuxEyDSKvrBVS9Up8cwZ0DwHxhnz2yDdRp4yoMvmOS3XkzHqcz4C4JuKQyfHtXKLj/!XIGNtAdmaOQCJpxTPIbQnq8OKq9thstQzHMsB1CjTMKDD1tGy712IMlIIBSFcDvd05FJ/wV3Imhp!ztY= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:7138 Date: 2006-10-22T14:24:25-04:00 List-Id: Georg Bauhaus wrote: > > I think that's a pity when seen from a "just Ada" perspective. There > is one more thing (allocators) you have to think about if you > want speed for local array variables when using GNAT. > > > Windows x86, GNAT GPL 2006, and OA 8.2 U15. The first, middle and last > element of the array are referenced. Pragma volatile > has been tried, too. It sounds like you are running some different code and I'd be hestitant to make any assertions about runtime for certain constructs without seeing it since 1) We just spent 3 days talking about the code that started this thread and there have been all sorts of assertions about things being faster/slower,etc. 2) You mention something about just accessing first, middle and last of your arrays so it really sounds like you really are just timing allocations and and not actually really hitting the array indexing (though hard to say without seeing the code). Don't take either of those as any sort of severe criticism but I am just trying to make sure that any discussions of performance are tied to clear,open and repeatable measurements so we all know what each other are talkig about. The problem is that too often, performance critisim is done via vague references rather than hard facts and thus they get dismissed (sometimes) by some compiler writers. The bug submitted on this issue (whether or not it ever gets fixed) certainly has generated real and useful discussions amoung the developers with few of the typical 'silly user' responses that we sometimes see.