Yao Qi <y...@codesourcery.com> writes: > > During the investigation, I feel that all the potential improvements > are identified by ARM experts or by reading asm code manually. This > mode doesn't scale very well. IMO, it is necessary to have a > target-independent framework for code size optimization. I have no > idea to do that framework though.
On x86 gcc is definitely behind some other compilers in terms of code size. Try reading some examples from http://embed.cs.utah.edu/embarrassing/ Since the criteria of the comparisons is code size it can show you where gcc is behind some other compilers (but note that these comparisons do not include the best compilers for small size and also do not run with -Os currently) This is for x86, but could be probably used for other architectures too. -Andi -- a...@linux.intel.com -- Speaking for myself only.