logoalt Hacker News

drysineyesterday at 7:15 PM0 repliesview on HN

What's weird about it?

If you are using volatile you are reading from a device port mapped to that address.

Since C doesn't mandate in which order function arguments are evaluated, you don't know which argument will be read from port first.

How can that be anything but UB?