On Tue, Sep 2, 2008 at 22:22, Pan ruochen <panruochen@xxxxxxxxx> 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