Content originally posted in LPCWare by frame on Fri Jun 07 02:19:16 MST 2013
I never tried this approach.
And I believe that all gcc variants produce about the same code size,
assuming identical versions and build settings. Differences do often
stem from link-in libraries, which confuse the matter.
From my experience, the Keil compiler is actually the best option
if judged by code density and performance. No wonder, as Keil is owned
by ARM, so one could expect a certain quality.
On the downside, there is of course the heavy price for a license...
I experienced a size reduction to about 50% when switching from gcc to Keil.
In this case, it was Crossworks (commercial product) vs. Keil, and the code sizes
where at about 95kB (Crossworks) and 44kB (Keil) for a non-trivial project size,
and equal build settings.