This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [GCC] New attribute "infrequent"?
- To: Joe Buck <jbuck at synopsys dot COM>
- Subject: Re: [GCC] New attribute "infrequent"?
- From: Patrick Audley <paudley at blackcat dot ca>
- Date: Mon, 27 Aug 2001 16:28:35 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <200108272210.PAA11330@atrus.synopsys.com>
Joe> But in my experience, except for applications like DSP where
Joe> control flow is extremely predictable, most programmers (as
Joe> opposed to gurus, and even gurus are imperfect) tend NOT to
Joe> know, or to guess wrong, about the performance-critical parts
Joe> of their program, unless they've profiled it. Originally
However, determining which sections are performance-critical is an
approachable problem; there are many tools to help and much
documentation. The argument isn't whether programmers know which
sections of code are frequently called or not, it is which makes
more sense, having programmers mark 80% of their code are infrequent
or having them mark only the 20% that is performance-critical.
Patrick Audley.