by pbrowne011 on 10/4/24, 4:24 PM with 10 comments
by sligor on 10/5/24, 10:07 AM
Even if compilers are better now, if possible it is better to wrap any IO memory access into ioread/iowrite inline (no cost) functions. This can then be implemented in a way known to be safe for the compiler used. And that can be changed easily in case the architecture or the compiler changes ( yeah abstraction ! )
As linux does for example: https://www.kernel.org/doc/html/v4.15/driver-api/device-io.h...
by userbinator on 10/5/24, 5:31 AM
by vintagedave on 10/5/24, 2:47 PM
Ouch (assuming that this required them to pay to get the bugfix.)
by kookamamie on 10/5/24, 12:06 PM
by 486sx33 on 10/6/24, 3:33 AM
Wow does it ever suck and waste a ton of time when it IS the compiler. I feel sorrow for whomever had to find this out in their workflow
by bobmcnamara on 10/5/24, 8:27 AM