volatile and R/M/W operations
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Mon Dec 3 13:24:00 GMT 2007
> OK, sounds reasonable, but then I don't understand the logic behind
> avoiding this instruction sequence for the volatile case, this is
> two accesses at the bus level so what's the difference?
There's no difference from that perspective. The logic behind what's
generated is that instead of trying to do a case-by-case analysis of
what instruction combinations might actually be valid for volatile
memory (which could potentially be target-specific), GCC takes the
conservative approach of simply disabling all but trivial combinations
for volatile access.
More information about the Gcc
mailing list