This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Separate out translation phases 1 and 2
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.)
> 2. Cache usage has increased, because we're making multiple passes over memory.
>
> GCC's performance is dominated by cache behaviour, so it's possible that
> these disadvantages outweigh any savings in computation.
I'll time it, like I said to Devang. However, you should have a
workable alternative to handling other charsets going forwards.
Neil.