Re:Proposal for a Friendly Dialect of C
by to3m on Wednesday August 27, 2014 @08:40PM
(#8235403)
...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.
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.