From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,261bedf7aad81534 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Posix.4 memory mapping from Ada programs Date: 1997/05/06 Message-ID: <01bc5a44$de5d8c80$d08871a5@zeus>#1/1 X-Deja-AN: 239808085 Distribution: world References: <5kname$iv7@singer.cent.gla.ac.uk> Organization: interQuest Online Services -- Huntsville, AL Newsgroups: comp.lang.ada Date: 1997-05-06T00:00:00+00:00 List-Id: 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 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.