This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Group static constructors and destructors in specific subsections
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, rguenther at suse dot de, iant at google dot com, iains at gcc dot gnu dot org, tglek at mozilla dot com
- Date: Fri, 15 Oct 2010 13:43:30 +0200
- Subject: Re: Group static constructors and destructors in specific subsections
- References: <20101014203817.GB15487@kam.mff.cuni.cz> <BBC9351F-B0A3-4B61-AA3A-6202072C68B2@comcast.net>
> 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