any consensus on "register" storage class?
walter harms
wharms at bfs.de
Tue May 16 16:57:38 UTC 2006
David Daney wrote:
> walter harms wrote:
>> hi,
>> today we did some test with gcc 4 on i586 and found that register is a
>> placebo, sometimes even slower than int (gcc strangeness).
>>
>
> Almost invariably GCC will do a better job at register allocation than a
> human programmer. I don't find your results strange at all.
>
>
>> i would suggest:
>> #define register
>>
>
> That will not work in general as the following declaration is legal:
>
> register k;
>
> With your define, removing the 'register' keyword results in a syntax
> error.
>
your are right, but the define was a symbol not a patch.
re,
wh
More information about the busybox
mailing list