register variables
Karl Braun
braun at drivax.UUCP
Thu Jun 27 05:26:09 AEST 1985
Ken Arnold presented the following example while talking about the necessity
of proper ordering when declaring register vars.
>
> register int i, j;
>
> for (i = 0; ...)
> for (j = 0; ...)
>
It made me wonder if the following version would be any more efficient:
register int i ;
for( i = 0 ; ... )
{
register int j ;
for( j = 0 ;... )
}
--
kral
ihnp4!-------- \
mot! ---------- \
ucbvax!unisoft! > drivax!braun
ucscc!--------- /
amdahl!------- /
More information about the Comp.lang.c
mailing list