comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: AW: GNAT compiler switches and optimization
Date: Mon, 23 Oct 2006 15:14:33 -0400
Date: 2006-10-23T15:14:33-04:00	[thread overview]
Message-ID: <wccpscij146.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: q-6dnYDfw96PYqHYnZ2dnUVZ_tmdnZ2d@comcast.com

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



  reply	other threads:[~2006-10-23 19:14 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
2006-10-23 17:42   ` tmoran
2006-10-23 19:14     ` Robert A Duff [this message]
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