Mail Archives: djgpp-workers/2000/05/08/06:13:08
On Mon, 8 May 2000, Martin Stromberg wrote:
> Eli said:
> > As for mmap, it should be trivial to throw together a KISS[1]
> > implementation that simply reads the entire file into memory, and see
> > how well (or how badly ;-) does that work, especially with very large
> > sources.
>
> Hey, this means we can support mmap( ..., PROT_READ, ... ),
> i. e. read-only mmap()!
In principle, yes. However, before we put mmap into the library, I think
Someone (tm) should look at several GNU packages which use mmap and
verify that our minimal implementation will do what those packages
expect. Since the availability of mmap is checked by the configure
script by linking a program, and since GNU packages I've seen always
prefer to use mmap if it is found, if we put mmap into the library for
GCC, we had better made sure it doesn't bite us elsewhere.
- Raw text -