Re: Is "register" generally ignored? (Fergus Henderson)
9 Mar 2002 02:52:48 -0500

          From comp.compilers

Related articles
Is "register" generally ignored? (Scott Meyers) (2002-02-28)
Re: Is "register" generally ignored? {spamtrap} (Maneki Neko) (2002-03-09)
Re: Is "register" generally ignored? (2002-03-09)
Re: Is "register" generally ignored? (2002-03-09)
Re: Is "register" generally ignored? (Ray Dillinger) (2002-03-21)
| List of all articles for this month |

From: (Fergus Henderson)
Newsgroups: comp.compilers
Date: 9 Mar 2002 02:52:48 -0500
Organization: Computer Science, University of Melbourne
References: 02-02-067
Keywords: C, C++, optimize
Posted-Date: 09 Mar 2002 02:52:48 EST

Scott Meyers <> writes:

>Is it reasonable to assume that contemporary C and C++
>compilers will ignore use of "register" when generating optimized code?


>[I hope that compilers at least remember that register variables don't
>have addresses, so there's no aliasing problems. -John]

Compilers can easily determine which variables have not had their address
taken, even if those variables were not explicitly declared `register'.
Modern optimizing C and C++ compilers should certainly be expected to
do this.

Fergus Henderson <> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <> | -- the last words of T. S. Garp.

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.