[Info-vax] Volatile, was: Re: yet another sys$qiow question
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Wed Aug 19 11:38:43 EDT 2015
On 2015-08-19, Johnny Billquist <bqt at softjar.se> wrote:
> On 2015-08-19 15:31, Simon Clubley wrote:
>>
>> Do you mean if VarB wasn't volatile and if [some condition] didn't
>> reference a volatile variable ?
>
> It would move the assignment out of the loop unless VarB or PORTA is
> marked as volatile.
Sorry, I missed the bit about PORTA not been volatile in this example
when it normally would be; I was thinking of one of the other posts
when I responded. If PORTA isn't volatile, it fails as you describe.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world
More information about the Info-vax
mailing list