use of memset and optimization
Bill Sommerfeld
sommerfeld at orchard.arlington.ma.us
Fri Nov 22 20:01:01 EST 2002
> > I think a good case can be made that even a memset of an auto volatile
> > array can be optimized away if the compiler can prove through
> > interprocedural or intermodule analysis that the address of the array
> > never escapes.
>
> "At sequence points, volatile objects are stable in the sense that
> previous evaluations are complete and subsequent evaluationts have not
> yet occurred." I think that rules out this optimization.
Not if no other bit of code can get a pointer to the volatile object!
- Bill
More information about the krbdev
mailing list