News for hackers. Stuff that matters.
Re:Four common mistakes in audio development (2016) by hoseja on Monday September 23, 2019 @04:06AM (#21046861)
I've grown so paranoid of optimizing compilers this wouldn't even cross my mind. But it is correct, right?
Re:Four common mistakes in audio development (2016) by AlbertoGP on Monday September 23, 2019 @04:55AM (#21047109)
Not OP, but the “volatile” qualifier should prevent the compiler from optimizing it out.
Re:Four common mistakes in audio development (2016) by Gibbon1 on Monday September 23, 2019 @05:31PM (#21053945)
Yeah should.

Multicore super scalar processors make me nervous about my assumptions. I wouldn't put it past one of them to realize that the result is unused and nop it.

It's always good to check.