[PATCH] gold: add an option to mmap whole files (defaults to true on 64-bit linkers)

Paul Brook paul@codesourcery.com
Wed Oct 28 16:30:00 GMT 2009


On Wednesday 28 October 2009, Ian Lance Taylor wrote:
> Mikolaj Zalewski <mikolajz@google.com> writes:
> >   I have created a patch adding an option to mmap whole file in
> > File_read::open and making it default on 64-bit linker builds. This
> > seems to speed up large builds. The changes were very similar to the
> > already existing support to open pseudo-files (for tests) with
> > contents passed as an argument, so I've merged both features.
> 
> Thanks for pursuing this.

You can't assume that 64-bit machines have insane amounts of virtual memory 
available. At minimum you need to check ulimit -v.

Paul



More information about the Binutils mailing list