This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: question on volatile
On Mon, Nov 08, 1999 at 08:35:34AM +0100, Martin Kahlert wrote:
> Sorry to ask, but what exactly does total memory ordering mean?
All reads/writes guaranteed ordered with other reads/writes.
> When the compiler wrote all of its instructions to write
> some data and (hopefully after that) writes to the
> volatile variable, what can go wrong? Can the hardware delay
> some writes in favor of others?
Unless your hardware has the property of total memory ordering,
yes, that's exactly what I'm saying.
r~