[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] Re: -ffunction-sections and profiling
From: |
Camm Maguire |
Subject: |
[Gcl-devel] Re: -ffunction-sections and profiling |
Date: |
18 Jun 2005 08:06:11 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Greetings!
"John David Anglin" <address@hidden> writes:
> > > 2003-11-27 Randolph Chung <address@hidden>
> > > John David Anglin <address@hidden>
> > >
> > > * 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.
>
OK, 2.0 works, trying different values of --stub-group-size moved the
linking problem elsewhere, but never seems to eliminate it. I would
have preferred the most portable binary. I still don't see why
-ffunction-sections makes profiling impossible. I suppose I could try
to disable the profiling images only on hppa, but of course dislike
one offs like these. Does Debian have a policy regarding binaries
that won't work across all machines of the arch -- i.e. do I have the
option of simply using -march=2.0 in a Debian package? I did
similarly for atlas some time ago, but there we have an elaborate
scheme to sequester subarch optimized code that won't run on all
machines of the arch.
Take care,
> Dave
> --
> J. David Anglin address@hidden
> National Research Council of Canada (613) 990-0752 (FAX:
> 952-6602)
>
>
>
--
Camm Maguire address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah