Path: utzoo!utgpu!water!watmath!clyde!ima!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.lang.c Subject: Re: `noalias' vs `register' Message-ID: <13771@think.UUCP> Date: 16 Dec 87 00:56:52 GMT References: <6829@brl-smoke.ARPA> <9753@mimsy.UUCP> <6830@brl-smoke.ARPA> <6833@brl-smoke.ARPA> <9796@mimsy.UUCP> Sender: usenet@think.UUCP Reply-To: barmar@sauron.think.com.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 28 In article <9796@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >>>In article <9770@mimsy.UUCP> I wrote >>>... why not just use `register'? ... [because] you cannot take the >>>address of a register. > >To which, in article <6833@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA >(Doug Gwyn) replies: >>That's not the answer! > >Sure it is. Watch: [followed by a number of good examples.] How about: noalias int r[5]; r[1] = 1; foo(r); if (r[1] == 1) ... Are arrays allowed to be declared "register"? --- Barry Margolin Thinking Machines Corp. barmar@think.com seismo!think!barmar