Re:A bug story: data alignment in C on x86 (2016)
by saagarjha on Wednesday September 05, 2018 @02:29AM
(#17915501)
> trying to use the language in the straightforward portable-assembler way that it was originally designed for
Just because it was designed that way doesn't mean that's the way it works now. There are reasons why pointer casts are left undefined (as opposed to many other sources of undefined behavior, to which I heartily agree should have been left implementation-defined).
If anything it's the insanity of standards-lawyering antagonistic compiler-writers which is "actively harmful".
No one wants things like integer overflow checks being silently removed, yet there's an apparent surplus of people whose only reaction is to worship The Holy Standard and laugh at you for trying to use the language in the straightforward portable-assembler way that it was originally designed for.