Subject: Re: HLL-to-C compilation
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1997/12/06
Newsgroups: comp.lang.misc,comp.lang.scheme
Message-ID: <66askd$3ftu4@fido.asd.sgi.com>

James Rauser  <rausejme@kou3.ina.de> wrote:
+---------------
| Michael Sperber [Mr. Preprocessor] wrote:
| > ... or use mmap.
...
| I could "compile" the serialized versions into mmap-able files, but
| that would lead to problems with the number of open file descriptors:
| all of the modules are individually demand-loaded.
+---------------

In the Unixes I know, once you've mmap'd a file, you can close the
file descriptor without losing the mapping [and you don't need the
FD to "munmap" the pages]. In fact, this is how ".so" libraries get
into your address space!  So whatever limit an O/S has on simultaneous
mmap'd files per process should be the same as whatever limit there
is on simultaneous dlopen'd libraries...


-Rob

-----
Rob Warnock, 7L-551		rpw3@sgi.com   http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673 [New area code!]
2011 N. Shoreline Blvd.		FAX: 650-933-4392
Mountain View, CA  94043	PP-ASEL-IA