Content originally posted in LPCWare by vtw.433e on Tue Mar 01 13:05:42 MST 2016
Doesn't surprise me at all. -O0 generates very very inefficient code. It will break any caching. Take a look at what is generated to see for yourself. Take a look at the FAQs on compiler optimisation and use a higher level in your debug build, at the cost of debugability