by hedora · 6y ago · 0 comments
Dictating that all architectures implement UB the same way would have significant overhead, since it would force programs that don’t rely on UB to run in emulation on all but one architecture (at best).
Implementation-defined behavior works as you say, where each compiler can define how it responds to certain circumstances.