This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: precompiled header support


On Fri, May 07, 2004 at 11:45:26AM -0700, Geoff Keating wrote:
> "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?
> 
> Something with the same effect can be done, yes.  However, no-one has
> yet implemented this because it would be slower and there's never been
> an example of a host which really needed it.  (Maybe if you can
> explain more about your host, it might be the first example.)

  This is "my" host: AmigaOS/68k not officially supported by FSF GCC. At
  that system programs are always loaded to a random (== free) address by
  the loader. Thats by design to not require a MMU and is possible because
  programs have relocation tables to let the loader adapt the places that
  use "absolute" addresses.
  Thus I believe the current PCH doesn't work at that host, eg. ("text
  segment moved"). What I would like todo is, disable PCH altogether to
  prevent other users trying to use it which would happen regardless of
  what documentation states.

  Gunther


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]