News for hackers. Stuff that matters.
Re:Why volatile is hard to specify and implement by burfog on Monday April 11, 2016 @03:05PM (#11474248)
Volatile also tempts you to break the aliasing rules. If you find yourself casting pointers, you are probably violating the C standard. You'll need something like -fno-strict-aliasing to enable a non-standard C dialect.
Re:Why volatile is hard to specify and implement by Avernar on Monday April 11, 2016 @03:25PM (#11474403)
Why would you need to alias pointers for MMIO? There's one pointer to a struct that defines all your IO registers for that memory range.