basic-block and profile-based optimizing (was Re: New attribute "infrequent"?)
David Edelsohn
dje@watson.ibm.com
Fri Aug 31 09:19:00 GMT 2001
>>>>> Andreas Jaeger writes:
Andreas> Profile driven optimizations won't help directly in the case of
Andreas> libraries where you can't profile. That's AFAIR why Jan suggested
Andreas> this attribute.
While one cannot profile and tune a system-wide library for each
application's use, one can profile and optimize the library with
representative *real* applications. Most library functions are used in
standard ways, so profile-directed feedback tuning of the system libraries
can be useful. The exceptional cases and error recovery paths are
consistent. One needs to accept that the library is optimized only once
for all potential applications, but that generic optimization can be
effective for the system.
David
More information about the Gcc
mailing list