comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Efficient Matrix?
Date: Sat, 28 Dec 2002 20:51:25 GMT
Date: 2002-12-28T20:51:25+00:00	[thread overview]
Message-ID: <wccbs35rho2.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: BA338F12.1700%yaldnifw@blueyonder.co.uk

Bill Findlay <yaldnifw@blueyonder.co.uk> writes:

> I meant it was good that the OP could get the array well packed.
> It is bad in every other sense. 8-)

;-)

> But I read 13.2 as normative, not binding: 13.2(6) says "should try" and
                     ^^^^^^^^^
> 13.2(7) says "recommended". 13.3 is similarly worded w.r.t. Component_Size.

I think you mean "nonnormative".  Normative means binding.  Probably a
typo.

Anyway, as I said in another post, 13.2(7) *is* binding if the compiler
claims to support the SP annex.

13.2(6) is Implementation Advice, and therefore nonbinding.

> Definitely something fishy here.
> If the components of C and U had different sizes then a lot of run-time
> packing would be needed to implement
> 
>    C.all := U.all;
> 
> (and indeed the object code is enormous, but I don't know enough to say if
> that's what it's doing - it certainly shouldn't be).

Indeed.  In other words, the compiler writer would have to go to more
trouble to fail to pack the unconstrained one, than to do it right
(given that the constrained one is clearly packed correctly).

> How can we tell whether the size attributes are lying?

Look at the machine code.

Or, maybe print out the value of U.all(1,1)'Address and
U.all(100,100)'Address, or something like that.

- Bob



  parent reply	other threads:[~2002-12-28 20:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3e0b2a66_4@news.bluewin.ch>
2002-12-26 22:09 ` Efficient Matrix? Adrian Knoth
2002-12-27  0:23   ` Alvery Grazebrook
2002-12-27  9:53     ` Adrian Knoth
2002-12-27 16:58       ` Robert A Duff
2002-12-28  1:44         ` Nick Roberts
2002-12-28 13:00         ` Adrian Knoth
2002-12-28 15:21           ` Bill Findlay
2002-12-28 15:48             ` Adrian Knoth
2002-12-28 23:26               ` Adrian Knoth
2002-12-28 16:07             ` Robert A Duff
2002-12-28 17:25               ` Bill Findlay
2002-12-28 17:35                 ` Bill Findlay
2002-12-28 20:51                 ` Robert A Duff [this message]
2002-12-28 15:58           ` Robert A Duff
2002-12-28 17:19             ` Adrian Knoth
2002-12-28 19:16               ` James S. Rogers
2002-12-28 20:45               ` Robert A Duff
2002-12-28 22:07                 ` Adrian Knoth
2002-12-28 23:42                   ` Robert A Duff
2002-12-27 12:25 ` Gautier
replies disabled

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