[PATCH] any value in numerous uses of "register" storage class?

Robert P. J. Day rpjday at mindspring.com
Sun Mar 26 15:10:21 PST 2006


On Sun, 26 Mar 2006, Rob Landley wrote:

> On Sunday 26 March 2006 9:41 am, Robert P. J. Day wrote:
> >   given the efficiency of optimizing compilers these days, is
> > there much value in the plethora of variables defined with the
> > "register" storage class?  in any event, we can at least get rid
> > of the few that have been commented out:
>
> Yeah, removing commented out code is generally an easy sell.  (When
> they get around to enabling it, they can put it back in.
> Meanwhile, it doesn't belong in the tree.)
>
> Applied.
>
> For any others you'd like to remove, bench and do make sizes to see
> if they make a difference.  In theory it shouldn't make any
> difference on a reasonably modern compiler, but in practice it may.
> (It's a hint.)

i'm assuming that, size issues aside, removing register storage class
references from declarations shouldn't affect actual functionality.
that's the theory, anyway.  if it did, something would be very weird.

rday


More information about the busybox mailing list