Is it possible that gcc reorders a series of read/write operations?
Pan ruochen
panruochen@gmail.com
Thu Sep 4 01:12:00 GMT 2008
> GCC shouldn't reorder the operations because you have them declared as
> 'volatile', however I have a MIPS CPU where the hardware writeback buffer
> seems to do reordering...
>
> David Daney
>
Can volatile do this? I thought volatile just forced GCC to read the
memory location each time rather than cahed the value in a register.
And I am interested in the details how your MIPS CPU hardware
reordered instructions.
Best Regard
-----------------
PRC
Sep 4, 2008
More information about the Gcc-help
mailing list