Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 ggr 02/21/84; site hudson.UUCP Path: utzoo!watmath!clyde!floyd!harpo!eagle!hudson!ggr From: ggr@hudson.UUCP (Guy Riddle) Newsgroups: net.arch,net.lang.c Subject: Re: register variables in C Message-ID: <148@hudson.UUCP> Date: Sun, 18-Mar-84 14:28:31 EST Article-I.D.: hudson.148 Posted: Sun Mar 18 14:28:31 1984 Date-Received: Mon, 19-Mar-84 08:07:42 EST References: <936@hou5e.UUCP> <502@abnjh.UUCP> Organization: AT&T Bell Laboratories, Piscataway Lines: 25 Rick Thomas states: > PCC, at least, enforces this restriction; you cannot apply the '&' > operator to a register variable. However, this is not quite true. Pcc enforces the restriction on variables declared 'register' that have actually been allocated to registers and not on those that have been converted to automatic storage. For example, this program gets an error message: main(){ register a,b,d,c,e,f,g,h,i,j,k,l,m,n,o,p; fn(&a); } But this one doesn't: main(){ register a,b,d,c,e,f,g,h,i,j,k,l,m,n,o,p; fn(&n); } === Guy Riddle == AT&T Bell Laboratories, Piscataway ===