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,5b3aa4bc9027f04e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Unconstrained Arrays References: <1a8008fb-c840-45bc-824c-d10eec9fe569@d36g2000prf.googlegroups.com> <0caa9cf8-0620-4544-9b2c-2c9f24142b7f@v23g2000pro.googlegroups.com> <386b0e00-a1c6-4c5f-adf7-89b8543d0e2d@c11g2000yqj.googlegroups.com> In-Reply-To: <386b0e00-a1c6-4c5f-adf7-89b8543d0e2d@c11g2000yqj.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1237401103 173.16.158.68 (Wed, 18 Mar 2009 18:31:43 GMT) NNTP-Posting-Date: Wed, 18 Mar 2009 18:31:43 GMT Organization: AT&T ASP.att.net Date: Wed, 18 Mar 2009 18:31:43 GMT Xref: g2news2.google.com comp.lang.ada:5145 Date: 2009-03-18T18:31:43+00:00 List-Id: belteshazzar wrote: > > Unfortuantely this is an optimisation and actually doesn't occur with > optimisation off. (I just ran a test program). I'm told that due to > the significant performance hit of the array initialisers when > optimisation is turned off we can't use that. If your compiler passes a 10,000-component array by copy at any optimization level, then you have a very poor compiler. If your vendor won't fix this, I'd recommend using another compiler. And I'm sure everyone here would appreciate knowing what compiler this is, so we can avoid it. -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33