Re:A bug story: data alignment in C on x86 (2016)
by userbinator on Tuesday September 04, 2018 @10:31PM
(#17914629)
rather than to try to force C to be that language
Ironic, considering that C was specifically designed for that from the beginning.
The problem is that almost no one needs a portable assembler, and even those who want it very often only want it for very small snippets of code. If you want to specify something very exactly that is legal only because of the particulars of your machine, then use assembly. There are certainly a few things that compilers could expose that are poorly exposed in most languages (floating point environment, various flag bit manipulation including checked overflow and add-with-carry, vector instructions, synchronization barriers, underaligned types). But you don't need portable assembly for those things, just better compilers.