Content originally posted in LPCWare by Pacman on Fri Mar 14 14:55:41 MST 2014
Thank you for the nice words. :)
The LPC800 is very impressive when looking at its size and price. It brings new technology to explore. The timers might not be as convenient as other kinds of timers, but they do bring new possibilities, which are worth exploring.
As I see it, you've been using the code mentioned for around 3 years; this means the code has already been tested and improved for a while. Even if you have been moving to a new platform and either rewritten or adapted the earlier code, it means: Improved stability, because you've found better ways to do the tasks, and if you've found bugs along the way, you've also squashed them.
That's worth thinking about as well. ;)
Regarding the M0 optimization; well, there's of course a lot more that can be done. The best you can do, to 'stretch' the processor's instruction set, is to use it in a way you didn't imagine you would use it. :)
GCC is a pretty cool and pretty impressive compiler, when it comes to optimizing.
Sometimes it generates code, which is way over my head.
-But you can still beat the compiler when you invent new tricks yourself.
Fortunately, the compiler-developers also come up with new ways to abuse instructions. :)
-So keep getting crazy ideas; those ideas can make a huge difference.