This is the mail archive of the gcc-patches@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: Group static constructors and destructors in specific subsections


> On Oct 14, 2010, at 1:38 PM, Jan Hubicka wrote:
> > Together with linker script update (attached at binutils side) this cause
> > significant improvements in the startup time (40% of Mozilla's binary startup
> > is paging in hundreds of static constructors evenly spred across the binary).
> 
> I'm curious, I'd expect the same improvement with no binutils change?  How do the numbers differ without it?

Without binutils change the subsections are laid our sequentially.  We
basically get constructor at the end of each original .o file instead of in the
middle of it, but it makes no difference.

Honza


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