News for hackers. Stuff that matters.
Re:Everything in C is undefined behavior by drysine on Wednesday May 20, 2026 @03:15PM (#48212609)
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?

There are no comments on this comment yet.