> since a null pointer dereference was undefined behavior, the compiler didn't need to generate any instructions for it.
I deeply hate this attitude in modern compiler design.
Me too. My compilers don't do that.
Me too. My compilers don't do that.