Whither _noalias_?
Doug Gwyn
gwyn at smoke.brl.mil
Sat Feb 9 20:57:07 AEST 1991
In article <1991Feb8.211734.22306 at portia.Stanford.EDU> dhinds at elaine24.stanford.edu (David Hinds) writes:
>Was it really that hard
>to come up with a clear and useful definition of "noalias", or was it just
>a result of committee politics fouling it up?
Henry's presentation of the history is a bit biased.
In fact it is remarkably hard to get a specification for nonaliasing
right (meaning: the programmer is able to readily control when the
compiler is allowed to hyperoptimize and when aliasing may occur).
X3J11 has been wrangling with an interpretation request that involves
similar logical issues for over a year now, with no resolution in sight.
The root problem is that C serves both low-level and high-level
programming goals, and this sort of thing is where no single compromise
seems to satisfy both kinds of usage of the language.
>Was the proposal to just
>have "noalias" apply to function parameters? It would seem to be much
>more useful if it could be used on any pointer variable.
It was a type qualifier.
More information about the Comp.lang.c
mailing list