[HN Gopher] PLOS2021: ISO-C became unusable for operating systems ___________________________________________________________________ PLOS2021: ISO-C became unusable for operating systems Author : vyodaiken Score : 22 points Date : 2021-10-06 21:59 UTC (1 hours ago) (HTM) web link (www.yodaiken.com) (TXT) w3m dump (www.yodaiken.com) | davidgerard wrote: | direct PDF link: https://www.yodaiken.com/wp- | content/uploads/2021/10/yodaiken... | bombcar wrote: | The fact that a compiler is allowed/encouraged to silently remove | whole sections of code because of some obscure factoid is an | amazing source of footguns. | | At least the warnings are getting a bit better for some of these. | Asooka wrote: | Absolutely, those optimisations should be opt-in, otherwise | it's impossible to reason about the correctness of your code. | At work we had to replace some arithmetic by inline assembly, | as there was literally no other way of making the compiler | generate the correct expression. | int_19h wrote: | Could you give an example of such input? | cocoafleck wrote: | I'm very curious to learn more about this as I thought it was | easily possible to opt out of the overly aggressive defaults | of GCC, Clang, and the like. | po1nt wrote: | I think it's about time to abandon C language entirely. | Asooka wrote: | Sometimes I do wonder if all these UB optimisations aren't | pushed by people aiming to make C and C++ unusable, so that | people will be forced to move to other languages. | gjm11 wrote: | The actual title of the paper is "How ISO C became unusable for | operating systems development". Is there a particular reason why | the first and last words have been removed here? | Hemospectrum wrote: | HN does this automatically. I think it's intended as a | clickbait filter. Sometimes the mods change it back. ___________________________________________________________________ (page generated 2021-10-06 23:00 UTC)