This is the mail archive of the
mailing list for the GCC project.
Re: basic-block and profile-based optimizing (was Re: New attribute"infrequent"?)
John Levon <email@example.com> writes:
> On Fri, Aug 31, 2001 at 02:11:01PM +0200, Andreas Jaeger wrote:
>> Profile driven optimizations won't help directly in the case of
>> libraries where you can't profile.
> when can this happen ? What libraries can't be profiled ?
You cannot profile accuratly the C library. It can be profiled - but
I don't expect that it's realistic:
- What kind of application will you use? This needs to be a
self-written application that calls all calls with typical
- How will you handle exceptional stuff? Should those be called by
the special application? For example should strerror be called - or
- There're plenty of different types of applications and it's
difficult to model even some of them.
For some small libraries you might get good results but not for
something complex like the GNU C library,
SuSE Labs firstname.lastname@example.org