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!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: AW: GNAT compiler switches and optimization Date: Mon, 23 Oct 2006 15:14:33 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1161630873 17666 192.74.137.71 (23 Oct 2006 19:14:33 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 23 Oct 2006 19:14:33 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:damx7SGdbCXmu+fZrzNRqSP5rM4= Xref: g2news2.google.com comp.lang.ada:7172 Date: 2006-10-23T15:14:33-04:00 List-Id: tmoran@acm.org writes: > ARM 3.6.2(11) "An implementation should normally represent a > multidimensional array in row-major order, ... Ah, I had forgotten that. Thanks. When the RM says "should", you can usually count on it being true in all serious Ada compilers. So why doesn't it say "shall"? Well, it's not really a formal requirement -- you can't write a test case that can tell for sure which way arrays are stored. Nonetheless, I think you can count on this rule being obeyed -- compiler writers don't deliberately go out of their way to cause trouble for their customers. I certainly do not think you should start putting Convention(Fortran) on all your performance-critical arrays, just to make sure! - Bob