This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PCH, and more generally C++ parser performance
On Thu, Aug 24, 2000 at 06:40:47PM -0700, Mark Mitchell wrote:
> - Doing some kind of "freeze" on memory isn't entirely unreasonable
> -- but it is hard. That brings us back to many of the problems
> that we faced with obstacks.
It doesn't bring back obstack horror if you use the MMU to enforce
this sort of thing, which is what Zack was mentioning.
You guess that the memory is stable, mark it read-only, and if you're
wrong you get a SEGV, mark it read-write again but now with knowledge
that it must be rescaned.
It is still hard though.
r~