Date: Tue, 16 Mar 1999 00:58:54 -0800 From: "David O'Brien" <obrien@NUXI.com> To: Jason Thorpe <thorpej@nas.nasa.gov> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Use of "register" in code Message-ID: <19990316005854.B73567@relay.nuxi.com> In-Reply-To: <199903160539.VAA17718@lestat.nas.nasa.gov>; from Jason Thorpe on Mon, Mar 15, 1999 at 09:39:58PM -0800 References: <199903160539.VAA17718@lestat.nas.nasa.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 15, 1999 at 09:39:58PM -0800, Jason Thorpe wrote: > Uhh... "register" isn't in Standard C, is it? ANSI X3.159-1989: 3.1.1 Keywords -------------- "register" listed 3.5.1 Storage-Class Specifiers ------------------------------ A declaration of an identifier for an object with storage-class specifier "register" suggests that access to the object be as fast as possible. The extent to which such suggestions are effective is implementation-defined.(footnote 58) (footnote 58) The implementation may treat any "register" declaration simply as an "auto" declaration. However, whether or not addressable storage is actually used, the address of any part of an object declared with storage-class specifier "register" may not be computed, either explicitly (by use of the unary "&" operator as discussed in 3.3.3.2) or implicitly (by converting an array name to a pointer as discussed in 3.2.2.1). Thus the only operator that can be applied to an array declared with storage-class specifier "register" is "sizeof". -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990316005854.B73567>