Forum Discussion
wwanalim_intel
Contributor
1 year agoHi Sir,
So far there is no official document or guide from us on how to disable the optimization for a specific block of code.
However, I found this which you can try.
https://programfan.github.io/blog/2015/04/27/prevent-gcc-optimize-away-code/
Thank you.