Subj : Re: What does Memory Barriers mean ?? To : comp.programming.threads From : Joseph Seigh Date : Mon Jan 10 2005 09:14 am On Mon, 10 Jan 2005 14:15:15 +0100, Alexander Terekhov wrote: > > David Schwartz wrote: > [...] >> Nonsense. Few people would willingly use such a compiler, and compilers >> like VC++ and gcc are not compilers like that. If your code/compiler works >> at one optimization level and not another, there's either a bug in your code >> or a bug in the compiler. > > Single-threaded "observable behavior" aside for a moment, neither > gcc not VC++ have any meaningful MT memory model that would allow > programmers express memory isolation and reordering constrains > imposed on compiler and/or "hardware." So in practice, it all > "works" by accident, so to say. > And the ones that work by accident get to be certfied as Posix compliant. I'd be suprised if any compilers worked on purpose. Joe Seigh .