Dan Sugalski <[EMAIL PROTECTED]> writes:

> Aliasing is actually one of the bigger problems with C, or so I'm lead
> to believe. It gets in the way of a number of optimizations rather
> badly. (So say some of Compaq's C and Fortran compiler folks, and I have
> no reason to doubt them. The Fortran compiler often generates faster
> code than the C compiler for this reason apparently)

Hence the introduction of the restrict keyword in C99 and several of gcc's
attribute extensions for marking pure functions to try to get a handle on
the problem.  *wry grin*  Yeah, that's the main thing that gets in the way
of optimizing C.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to