3 ms·
Not OP, but the “volatile” qualifier should prevent the compiler from optimizing it out.
by AlbertoGP 7y ago
Not OP, but the “volatile” qualifier should prevent the compiler from optimizing it out.
- Gibbon1 7y agoYeah 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.