To reduce the code size:
In Eclipse, go to Project -> Properties -> C/C++ Build -> Settings -> ARM Sourcery Windows GCC C Compiler -> Optimization.
Select the Optimization level as "Optimize size (-Os)". This woud reduce the code size by some extent.
Further, the release build has less code size than Debug build. You can use the relase build in your final product.
- Madhu Sudhan