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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Warner BRUNS Newsgroups: comp.lang.ada Subject: Re: AW: GNAT compiler switches and optimization Date: Mon, 23 Oct 2006 19:06:50 +0200 Organization: CERN News Message-ID: References: NNTP-Posting-Host: lxplus055.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1161623211 18884 137.138.4.169 (23 Oct 2006 17:06:51 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Mon, 23 Oct 2006 17:06:51 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060918 Red Hat/1.0.5-0.1.el3 SeaMonkey/1.0.5 In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7168 Date: 2006-10-23T19:06:50+02:00 List-Id: Grein, Christoph (Fa. ESG) wrote: > Warner BRUNS claimed: > >> A problem with Ada is that the memory layout of a twodimensional array > is >> not specified in the Ada Standard. > > That's wrong: > Ada is row-first order (1, 1) (1, 2) etc., > Fortran specifies column-first (1, 2) (2, 1) etc. > > This is what the pragma Convention is for. I might be wrong, but my understanding is that the memory layout is not specified in the standard. Can you point me to the section of the standard which specifies the memory layout of a multidimensional array? To me it seems as if you can only count on a specific memory layout if you specify it to be the layout of a non-Ada languag, eg Fortran. Strange indeed for a standard. Warner