Clustering functions

Jeffrey A Law law@cygnus.com
Wed Jun 30 15:43:00 GMT 1999


  In message < 199906030019.RAA29895@kankakee.wrs.com >you write:
  > Yes.  You can put them in named sections, and have S1, S2, S3, ... S9
  > and put exponentially more functions in the later buckets, and the
  > most used functions in the earlier buckets.  This is a poor man's
  > strategy, but it should work ok.
Note -ffunction-sections can be used to put every function into its own
section.  In fact, the rationale behind adding -ffunction-sections was 
to allow developers to specify an ordering for functions in the final
executable.

jeff



More information about the Gcc mailing list