This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: volatile shared memory


On Thu, 15 Mar 2012, NightStrike wrote:

For simple things like this, and much more complicated things beyond
it, is there a way to cast something to "volatile" for one particular
usage?

Ian's answer is the right one. For this particular subquestion, yes, it is possible, just do a cast at the pointer level and access the object through that int volatile*.


--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]