[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: -ffunction-sections and profiling



> > 2003-11-27  Randolph Chung  <tausq@debian.org>
> >             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
> > 
> > 	* pa.c (hppa_profile_hook): Split gen_call_profiler into separate
> > 	insns.  Use the regular call expander for the call to the profiler.
> > 
> > What version of gcc are you using?
> > 
> 
> 3.3.3

You need 3.4 for the above.

> > There's always the potential for the stub table to get too large.
> > You can play with the ld option --stub-group-size=N.  Another possibility
> > is to build PA 2.0 code.
> 
> Thanks, will try the 2.0.  Does this limit the binary in any practical
> way? 

Won't work on PA 1.x gear (715's, 735's, etc).  On the other hand,
you gain the benefit of PA 2.0's 22-bit b,l instruction when using %r2
as the link register.  This provides more efficient calls in big apps.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



Reply to: