Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: soundex algorithm wanted Message-ID: <3266@umcp-cs.UUCP> Date: Thu, 4-Sep-86 09:31:38 EDT Article-I.D.: umcp-cs.3266 Posted: Thu Sep 4 09:31:38 1986 Date-Received: Thu, 4-Sep-86 21:35:45 EDT References: <27@houligan.UUCP> <672@bnrmtv.UUCP> <1239@whuxl.UUCP> Organization: Computer Sci. Dept, U of Maryland, College Park, MD Lines: 13 In article <1239@whuxl.UUCP> mike@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@umcp-cs ARPA: chris@mimsy.umd.edu