[Prism54-devel] On the use of "volatile"
Luis R. Rodriguez
mcgrof@ruslug.rutgers.edu
Mon, 12 Jan 2004 09:59:19 -0500 (EST)
On Mon, 12 Jan 2004, kaleda wrote:
> > I believe that both uses of "volatile" are not required, or even
> > misleading, and thus the "volatile" should be removed.
>
> Totally agree.
> volatile is only the compiler flag, marking not to optimise the actions
> on variable.
>
> BTW in the original intersil source there were no volatile's.
>
Actually it did have them. I had added some volatiles to the mib just as a
precaution measure to avoid optimizations around those variables.
Luis