Re:Proposal for a Friendly Dialect of C
by dllthomas on Wednesday August 27, 2014 @08:23PM
(#8235363)
The standard differentiates between "undefined" and "implementation defined".
[ Parent
| on HN ]
...with one option for undefined behaviour being for it to behave "in some documented manner characteristic of the platform" (C11 para 3.4.3.2). Which is not the same thing as being implementation defined, of course, but is at least a step above simply deciding your program is invalid and generating bogus code because of it.
So compilers could do this stuff already. I have no idea why they don't. C isn't really the language for people who want platform independence.