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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,195cfda04e416f67,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-04 20:36:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!ip.att.net!attbi_feed3!attbi_feed4!attbi.com!sccrnsc02.POSTED!not-for-mail From: Freejack Subject: GNAT and Memory Maps? Newsgroups: comp.lang.ada Message-ID: User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL NNTP-Posting-Host: 12.245.85.50 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1057376163 12.245.85.50 (Sat, 05 Jul 2003 03:36:03 GMT) NNTP-Posting-Date: Sat, 05 Jul 2003 03:36:03 GMT Organization: AT&T Broadband Date: Sat, 05 Jul 2003 03:36:03 GMT Xref: archiver1.google.com comp.lang.ada:40072 Date: 2003-07-05T03:36:03+00:00 List-Id: I've been picking through the GNAT docs (and Ada docs in general) in an attempt to figure out how/if and when/why the Ada compiler might choose to use an mmap system call in deference to a malloc/calloc or alloca call. Basically, I'm doing some low level routines and I need explicit control over what pages are swapped and when. ( mmap() mlock() munlock() and munmap() are the usual C functions for handling this.) I'm using Linux at the moment, and I could just as easily use the native C library (glibc). However, I want to handle this entirely in Ada. I'm using the No_Run_Time Pragma. Note: I'm also a Forther, so the idea of explicit memory and device handling doesnt frighten me. ;-> (Hmmm...now theres an experiment to try sometime. A Subroutine Threaded Forth VM in Ada.) Any references would be appreciated. Freejack