In the V5 to V6 compiler migration document is the following with respect to optimzations
-O0 No Optimization. Not recommended for use in ARM Compiler 6.6
-O1 Limited Optimization. This is currently the recommended level for source level debugging.
…