comp.lang.ada
 help / color / mirror / Atom feed
From: Warner BRUNS <Warner.Bruns@cern.ch>
Subject: Re: AW: GNAT compiler switches and optimization
Date: Mon, 23 Oct 2006 19:06:50 +0200
Date: 2006-10-23T19:06:50+02:00	[thread overview]
Message-ID: <ehisra$ie4$1@cernne03.cern.ch> (raw)
In-Reply-To: <mailman.12.1161611270.4389.comp.lang.ada@ada-france.org>

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



  reply	other threads:[~2006-10-23 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23 12:46 AW: GNAT compiler switches and optimization Grein, Christoph (Fa. ESG)
2006-10-23 17:06 ` Warner BRUNS [this message]
2006-10-23 17:42   ` tmoran
2006-10-23 19:14     ` Robert A Duff
2006-10-23 20:29       ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox