Skip to Content.
Sympa Menu

c-semantics - Re: [C-Semantics] volatiles

c-semantics AT lists.cs.illinois.edu

Subject: C Semantics in K Framework

List archive

Re: [C-Semantics] volatiles


Chronological Thread 
  • From: John Regehr <regehr AT cs.utah.edu>
  • To: c-semantics AT cs.illinois.edu
  • Subject: Re: [C-Semantics] volatiles
  • Date: Thu, 23 Jun 2011 13:23:48 -0600
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/c-semantics>
  • List-id: C Semantics in K Framework <c-semantics.cs.illinois.edu>

Also, is it undefined to have unsequenced reads from two different
volatiles? E.g.,
volatile int v1 = 0, v2 = 0;
v1 + v2;

Subtraction is more of a problem if they both map to the same input
device.

I don't see the problem with subtraction and the same input device, can you explain?

John




Archive powered by MHonArc 2.6.16.

Top of Page