comp.lang.ada
 help / color / mirror / Atom feed
* GNAT and Memory Maps?
@ 2003-07-05  3:36 Freejack
  2003-07-05  4:42 ` Freejack
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Freejack @ 2003-07-05  3:36 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-07-08 20:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-05  3:36 GNAT and Memory Maps? Freejack
2003-07-05  4:42 ` Freejack
2003-07-05 13:10 ` Ludovic Brenta
2003-07-05 23:24   ` Freejack
2003-07-08  1:40   ` John Kern
2003-07-08  8:20     ` Freejack
2003-07-08 14:56     ` Rod Chapman
2003-07-05 16:22 ` Simon Wright
2003-07-07  3:50   ` Hyman Rosen
2003-07-08 20:20     ` Simon Wright
2003-07-05 19:59 ` Florian Weimer
2003-07-07  7:44 ` Jean-Pierre Rosen

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