Try the C compiler options
-O2 -s to make the compiler perform some optimizations, but not too much, and strip debugging information from the output executable program to make it smaller. Higher levels of optimization can actually cause a program to run slower by increasing the program size, due to loop unrolling, function inlining, and other size-increasing optimizations, causing code to overflow the instruction cache. I am not sure if -s will have any effect on the execution speed, but it will at least make the executable program occupy less disk space / flash memory space.
http://www.oesf.org/forum/index.php?showtopic=9285 -- There are additional optimizations which are possible for the newer systems, which aren't in general use because they're not seen as enough of a performance gain for the older systmems to lose performance and to justify an entirely new feed to house the optimized apps.
- It has some good instructions.
- supposedly has some development-related stuff but it was all broken for me.