comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <nholsti@icon.fi>
Subject: Re: VIDEO MEMORY ACCESS WITH POINTERS
Date: 1999/11/29
Date: 1999-11-29T00:00:00+00:00	[thread overview]
Message-ID: <3842F727.48B74003@icon.fi> (raw)
In-Reply-To: 3841FA9B.31E9D1F4@callnetuk.com

Nick Roberts wrote:
  [ snip ]

> Strictly, this solution needs two extra declarations:
> 
>    for video_cell'Size use 16;
> 
>    for video_memory_type'Component_Size use 16;
> 
> ... It may be more convenient to
> declare the array as a two-dimensional array, but (interestingly) the
> Ada standard provides no way to specify or interrogate whether an array
> is stored in row-major or column-major order, so you can't do this if
> you need portability.

Well, it is perhaps perverse in this context, but you
could ensure column-major order by

   pragma Convention (Fortran, TheArray);

but even I wouldn't use the above for video memory access :-)

Regards,
Niklas

Working at but not speaking for Space Systems Finland Ltd.




  reply	other threads:[~1999-11-29  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-27  0:00 VIDEO MEMORY ACCESS WITH POINTERS ???
1999-11-27  0:00 ` DuckE
1999-11-29  0:00   ` Nick Roberts
1999-11-29  0:00     ` Niklas Holsti [this message]
1999-12-01  0:00       ` Robert Dewar
1999-11-27  0:00 ` David C. Hoos, Sr.
1999-11-28  0:00 ` Vladimir Olensky
1999-11-30  0:00 ` 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