comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: GNAT and Memory Maps?
Date: Mon, 07 Jul 2003 03:50:48 GMT
Date: 2003-07-07T03:50:48+00:00	[thread overview]
Message-ID: <s66Oa.14195$Ha.8276@nwrdny02.gnilink.net> (raw)
In-Reply-To: <x7vsmpl54gk.fsf@smaug.pushface.org>

Simon Wright wrote:
> I would be very surprised if GNAT ever chose to use mmap -- how would
> it know which file to map?

The traditional choice is /dev/zero, which provides an infinitely long
stream of zero bytes. The idea behind using mmap() rather than sbrk() to
acquire memory is that you can mmap multiple regions, and when you release
such a region, memory is returned to the operating system rather than
remaining allocated to the program.




  reply	other threads:[~2003-07-07  3:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2003-07-08 20:20     ` Simon Wright
2003-07-05 19:59 ` Florian Weimer
2003-07-07  7:44 ` Jean-Pierre Rosen
replies disabled

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