cpplib: Separate out translation phases 1 and 2

Neil Booth neil@daikokuya.co.uk
Fri Apr 18 22:50:00 GMT 2003


Geoff Keating wrote:-

> Are we sure this is a good idea?  I can think of the following disadvantages:
> 
> 1. VM usage has increased, because we have this new buffer which is
>    written to.  (Before, when the buffer was read-only, most OSs would
>    just hand out pages from the disk cache, and they could hand out
>    the same page for every compile.)

That's only true for files > MMAP_THRESHOLD ~ 32K.  Most files are
headers < 32K, for which we opened into a buffer and appended a '\0'.

Neil.



More information about the Gcc-patches mailing list