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: PCH assumes there is no information before the object


> > I believe you can easily handle this using the current machinery.
> > ggc_pch_write_object would write out the header for the current
> > object, then the object, then enough padding to go up to the place
> > where it will write out the next object's header.  You do not have to
> > keep the file pointer positioned at the place where the next object's
> > data will be.
> >
> > Of course, ggc_pch_count_object and ggc_pch_alloc_object will have to
> > allow for the header in their calculations.
>
> Not only that,  but because strings are not really ggc allocated, you have
> to be able to distinguish between strings and non-strings.
>
> This means passing the damn note_ptr_fn down to some more functions.
>
>
> >
> > That was how I'd planned to implement ggc-simple PCH.
>
> I urge you to try it.
> It's no
	 ^t as easy as it would first seem.


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