I've written a small program that does a lot of number crunching this pushes the CPU load to approximately 46% according to top.
So I tried experimenting with the compiler optimisation flags i.e. -O1 -O2 and this does appear to lower the CPU usage.
Then I tried something else (info I found online) -O2 -falign-functions=16 -falign-loops=16 and the CPU load is down to 18%.
Now I'm curious, are optimisation flags universally beneficial to all platforms or are some options better for the ARMv6 but not for say Intel??
Is there a magic formula for generating the fastest code execution on the the ARMv6 processor??
Richard S.