Subj : Re: Memory Barriers, Compiler Optimizations, etc. To : comp.programming.threads From : Joseph Seigh Date : Sun Feb 06 2005 11:26 am On Sun, 6 Feb 2005 06:04:08 -0800, Scott Meyers wrote: > [...] I can imagine > programmers wanting stronger guarantees, but I can't imagine compiler > writers offering weaker guarantees. Are there real compiliers where use of > volatile does not have the effect of totally ordering accesses in the > generated code to volatile data? > You should ask that question in the C/C++ newsgroups where the compiler writers hang out. Cross post to this newsgroups because I'd be interested in what their response, if any, would be. If they do respond, ask if they'd mind putting the guarantees in writing. Bear in mind that the fact that Posix had to create a unilateral Posix compliance certification of C compilers should tell you something about how cooperative the C compiler community has been in the past. -- Joe Seigh .