soundex algorithm wanted

Chris Torek chris at umcp-cs.UUCP
Thu Sep 4 23:31:38 AEST 1986


In article <1239 at whuxl.UUCP> mike at whuxl.UUCP (BALDWIN) writes:
>	register char	c, lc, prev = '0';

All the compilers I have used ignore the `register' on `register
char' declarations.  In any case, an `int' will hold everything
that will fit in a `char', and is (usually) the `natural word size'
of the machine.  Is there ever any reason to declare a variable
`register char' rather than `register int'?  Are there any extant
compilers for which the latter will generate *worse* code?
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.lang.c mailing list