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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How To Create And Use Memory Map Files Date: Sat, 16 Feb 2019 19:58:49 +0000 Organization: A noiseless patient Spider Message-ID: References: <65487ca1-3a41-4acf-a36d-8ec62fcf5c28@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="80c5f682aae59d81ab06381d692c100f"; logging-data="20004"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R3ryx/R39t+BXSqMDql9hLcyYxd8Fksc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:mqUvQmrtNV1W7R7cwQB5tOxaQ/E= sha1:uRUV9RAAs60gJKRk1g+5PpW4BBE= Xref: reader01.eternal-september.org comp.lang.ada:55532 Date: 2019-02-16T19:58:49+00:00 List-Id: "Michael390@gmail.com" writes: > How does Ada do memory map files? Can you give me a few small, but > easy to read, programs showing the various aspects of using memory map > files in Ada? > > I'd like to know the intricacies of using memory map files. > > What is the documentation and what else should I know? I'm not sure what you mean by 'memory map files'. Do you mean the map that the linker can output, showing where objects in the link appear in store? Or perhaps you mean a way of making a file appear as an array of bytes, so it looks as though it's in memory? (mmap(2)) - in which case, GNAT provides System.Mmap - look for s-mmap.ads. Darwin users are be SOL with this (System.Mmap.OS_Interface is missing), but you should be OK on Linux. The files that _are_ present recommend looking at http://www.sqlite.org/mmap.html