On Mon, 6 Sep 2010, Yao Qi wrote:
Yao Qi wrote:
Hi, We are looking for some possible improvements and optimizations on thumb2 code size. Currently, I am running some benchmarks with compilation flag "-Os -march=armv7-a -mthumb", and hope to find some thing interesting that we can improve. Beside that, do you have some ideas on this topic? or do you have some observations on thumb2 code that we may probably improve the size?
Any thoughts on this are appreciated.
I've put some ideas in this wiki page, https://wiki.linaro.org/Internal/People/YaoQi/Thumb2Optimize
Your remark for the first example is wrong. GCC has to store r8 (or any other register for that matter) in order to keep the stack pointer 64-bit aligned, as required by EABI.
Nicolas