This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: precompiled header support
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: 07 May 2004 11:24:19 -0400
- Subject: Re: precompiled header support
- References: <NUTMEGFOAmEaJswFCHO0000001e@NUTMEG.CAM.ARTIMI.COM>
"Dave Korn" <dk@artimi.com> writes:
> Which led me to the following thought: can't the gc be (ab)used to chase
> down all the pointers in the mmap'd area and convert them to a self-relative
> form?
Yes, in principle it can. Another approach would be to have the PCH
code swizzle all pointers when the PCH is loaded. In practice Geoff
argues that it is always possible to find a fixed address for any
particular host, so there is no reason to go to the trouble of
implementing these approaches.
Ian