Well it's time again to upgrade gcc... I started with gcc 4, and went to gcc 7... got a huge bloat increase, but figured -Os seemed to clear up the bloat.
Now gcc 7 is EOL and went to gcc 10. Code hasn't changed any, makefile didn't change, I got a bit under 2% bloat with just a compiler change, and surprisingly no makefile changes were needed unlike the previous upgrade! For this one regression testing project luckily I had some room to spare but others I don't, and have been running up against the end of the flash memory.
Of course I can't do -Os -Os, that wouldn't do any good... so anyone find any stuff that would help out size increase? And once again this is an AVR and every byte counts...
Now gcc 7 is EOL and went to gcc 10. Code hasn't changed any, makefile didn't change, I got a bit under 2% bloat with just a compiler change, and surprisingly no makefile changes were needed unlike the previous upgrade! For this one regression testing project luckily I had some room to spare but others I don't, and have been running up against the end of the flash memory.
Of course I can't do -Os -Os, that wouldn't do any good... so anyone find any stuff that would help out size increase? And once again this is an AVR and every byte counts...