comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Posix.4 memory mapping from Ada programs
Date: 1997/05/06
Date: 1997-05-06T00:00:00+00:00	[thread overview]
Message-ID: <01bc5a44$de5d8c80$d08871a5@zeus> (raw)
In-Reply-To: 5kname$iv7@singer.cent.gla.ac.uk


I have been using memory mapping for some years now with VADS on SGI
platforms.  We have always used a constrained (two-dimensional) array type,
though.  The array dimensions are computed at run-time based on the known
dimensions and the array element type associate with the file, and the
required type is declared in a local declare block.
These files have been up to 500+ Mb. in size, and all works as expected.
The Ada interface is based in pragma interface to the underlying mmap, and
associated c- library.

Although this particular code has not yet been ported to Ada95, I see no
reason why it would not work, as long as you stick to constrained arrays.  

Hope this helps

David C. Hoos, Sr.

http://www.ada95.com

billimad <billimad@vanuata.dcs.gla.ac.uk> wrote in article
<5kname$iv7@singer.cent.gla.ac.uk>...
> I have been trying to use the Posix.4 memory mapping functions from an
> Ada program, but without total success. I have managed to successfully
> map static arrays but have been having more problems trying to map
> access to array types.





      reply	other threads:[~1997-05-06  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-06  0:00 Posix.4 memory mapping from Ada programs billimad
1997-05-06  0:00 ` David C. Hoos, Sr. [this message]
replies disabled

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