Hacker News new | ask | show | jobs
by NobodyNada 39 days ago
> There's no standard terminology I'm aware of to distinguish the two.

There is: implementation-defined behavior. Your example of writing to an MMIO address is such an example, as the standard says casting an int to a pointer is implementation-defined. (However, the C standard has plenty of cases of undefined behavior that probably should have been implementation-defined.)

1 comments

You seem to be conflating the act of writing to an arbitrary address with the act of assigning that arbitrary address to a pointer to begin with. They are distinct actions.