Date: Wed, 17 Mar 1999 01:34:33 -0500 (EST) From: "John S. Dyson" <dyson@iquest.net> To: alk@pobox.com Cc: chat@freebsd.org Subject: Re: Use of "register" in code Message-ID: <199903170634.BAA03100@y.dyson.net> In-Reply-To: <14063.12923.464399.183283@avalon.east> from Anthony Kimball at "Mar 16, 99 10:55:18 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Anthony Kimball said: > > > > I doubt it would make performance worse. I think GCC basically just > > > ignores it for IA32. > > > It does ignore it. > > This is categorically wrong. GCC does not ignore "register" > declarations. It honors the ANSI standard C semantics for > register-qualified types in at least some circumstances, even without > supplying -ansi or -pedantic options. I just tried it. > In the sense of "optimization" it does ignore it. I agree that register is considered to be something like "auto" from certain standpoints. However, it seemed that the context was optimization, and choosing "register" to produce better code. There should be *few* cases of the *need* to use "register" in code. Again, the context was optimization. -- John | Never try to teach a pig to sing, dyson@iquest.net | it makes one look stupid jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903170634.BAA03100>