Content originally posted in LPCWare by OldManVimes on Mon Aug 18 00:33:55 MST 2014
Hi Mike,
It's good to see your attention to detail. I am not in a position to give you real support, but the difference you are seeing is the result of a newer GCC compiler version. On average I find that GCC improves with newer versions, so there might be a benefit that we can't identify here. If code size is a primary driver for you, ensure you select the "-Os" optimization level in your compiler settings. I've been playing with "-flto" as well, but it gets a bit aggressive and strips, what it thinks are, un-referenced symbols from my image causing it to fail.
Tip: Create a dummy project in 7.3 using the wizard from scratch and look at the compiler settings this generates. They contain some interesting settings (although they might not have changed that much since version 6). This might give you some other space saving options. The settings generated by the wizard are good with the exception of a generic Eclipse issue where dependency files are borked since there's no dependency between the object file and the dependencies of the source file (talk about frustration). There's a thread lurking somewhere on this forum describing this issue. It also contains a fix. Basically compiler generated dependency files is beyond the level of competence of the Eclispe CDT community.
Cheers,
Vimes
"And when the Patrician was unhappy, he became very democratic. He found intricate and painful ways of spreading that unhappiness as far as possible."