This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: basic-block and profile-based optimizing (was Re: New attribute "infrequent"?)


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]