Thanks for these answers, it is now completely clear for me. Indeed, I checked only the (ROM) size of the final binary, forgetting about .data.
> There is a "-fmerge-all-constants" flag - it is possible that this will give > you the merging you want (though it doesn't seem to have the effect when I > tested on a single file). Unfortunately, it does not seem to work. According to gcc's manual -fmerge-all-constants is only a more aggressive version of -fmerge-constants, which is responsible for the optimizations mentioned previously; so it not suprising. _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev