Who's afraid of a big bad optimizing compiler?
Who's afraid of a big bad optimizing compiler?
Posted May 10, 2020 16:39 UTC (Sun) by rep_movsd (guest, #100040)Parent article: Who's afraid of a big bad optimizing compiler?
Posted May 10, 2020 21:16 UTC (Sun)
by farnz (subscriber, #17727)
[Link]
Couple of reasons:
A different coding style wouldn't need to worry about the second case, as it would cast away volatile instead of using ACCESS_ONCE for cases that don't need ACCESS_ONCE semantics, but for better or worse, the Linux coding style doesn't work that way.
Who's afraid of a big bad optimizing compiler?