Is anyone else seeing issues when coding in C and using gcc optimisation levels? If I compile my code with no optimisation settings then all is oka, but if I apply -O1 or -O2 or -O3 then I get really weird behaviour in my executable.
Of course I suspect there must be something in my code that's my fauilt, but as the tool-chain is I guess fairly new on the Pi I thought I'd ask in case others. Code is too large to post a meaningful frag I'm afraid.
For now to get the performance I need I'm now manually unrolling my loops but this makes code look ugly. It will do until I get to the bottom of the gcc optimisation issues I'm seeing.