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!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!ezmp3.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Warner BRUNS Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization Date: Mon, 23 Oct 2006 19:11:51 +0200 Organization: CERN News Message-ID: 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> <5vgs04-64f.ln1@newserver.thecreems.com> <453bc74e$0$19614$426a74cc@news.free.fr> <1161611520.6582.4.camel@localhost> 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 1161623524 19214 137.138.4.169 (23 Oct 2006 17:12:04 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Mon, 23 Oct 2006 17:12:04 +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: <1161611520.6582.4.camel@localhost> Xref: g2news2.google.com comp.lang.ada:7169 Date: 2006-10-23T19:11:51+02:00 List-Id: Georg Bauhaus wrote: > On Mon, 2006-10-23 at 14:40 +0200, Warner BRUNS wrote: > > >> A problem with Ada is that the memory layout of multidimensional arrays >> is not specified in the standard. If you want to have the same memory >> layout for all Ada compilers, you have to specify that a multimensional >> array should follow the convention of a foreign language, eg. Fortran. > > Will a memory layout cast in source really help with e.g. all > Ada X Fortran combinations of compilers and libraries? > It might disallow "knowledgeable" compilers to choose a layout > that suits the current setup, I'd think, and require touching > the sources. > > > -- Georg > > It will help with all Ada/ Fortran Compiler combinations, but the really strange thing is that the memory layout is not definitely known from the Ada source alone, if it is not specified as being the layout as required by a different language, eg. Fortran. If one wants to code a cache aware algorithm for eg. multiplying matrices, one cannot do this in Ada without enforcing the memory layout of the matrices via PRAGMA CONVENTION. Warner