I am compiling a program with both avrStudio7 and avr-gcc v 5.4.0.
The code size is quite different - 38k v 46k. This surprised me at first but both builds seem to run the same in the target. I concluded that the later versions of the compiler had been optimised to a greater extent. There are no (that I can see) obvious compiler/linker option differences.
BUT... RAM usage also changes quite a bit - 1962 / 2117 bytes. This was more of a surprise. I use unsigned char, signed char, uint_16, int_16 and a few float.
Does anyone have any experience with this sort of issue?
The RAM says to me that here are some different default type sizes or some different memory alignment approaches. I have not yet found any good leads.
As I say.... both builds run perfectly well.
Thanks in advance for any suggestions.