Is it possible that gcc reorders a series of read/write operations?

me22 me22.ca@gmail.com
Wed Sep 3 02:46:00 GMT 2008


On Tue, Sep 2, 2008 at 22:22, Pan ruochen <panruochen@gmail.com> wrote:
>
> I wonder if there is any possibility that gcc reorders the read/write
> operations in a way it thinks more optimal, which may be a disaster to
> the hardware driver.
>

I suspect that the volatile will prevent such things.

But just guessing,
~ Scott



More information about the Gcc-help mailing list