Attributes of functions

Frank Cusack fcusack at fcusack.com
Sat Sep 17 20:31:59 CEST 2005


On September 17, 2005 5:29:18 PM +0200 Nicolas Baradakis <nbk at sitadelle.com> wrote:
> Among other things, Primoz Bratanic has send to me a patch that adds
> attributes to some of the functions. I think it is a good idea, I can
> see only avantages to it:
> - it makes the code more explicit for the reader.
> - it helps the compiler to produce a more performant binary.
> - it makes audit easier.

It's less portable.
It adds significant noise.
Most attributes do not help the compiler produce a more "performant"
binary.  Branch prediction is one that helps, but off the top of my
head I can't think of any others.

Personally, I hate them, but I understand why folks use them.  So I'm not
objecting to their use, I'm just being argumentative. :-)

-frank



More information about the Freeradius-Devel mailing list