Badcaps.net Forum
Go Back   Badcaps Forums > General Topics > General Computer & Tech Discussion
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
Thread Tools Display Modes
Old 07-11-2021, 01:47 PM   #1
eccerr0r
Solder Sloth
 
eccerr0r's Avatar
 
Join Date: Nov 2012
City & State: CO
My Country: USA
Line Voltage: 120VAC 60Hz
I'm a: Hobbyist Tech
Posts: 7,163
Default more gcc code size reduction for AVR

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...
eccerr0r is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Badcaps.net Technical Forums 2003 - 2022
Powered by vBulletin ®
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
All times are GMT -6. The time now is 08:55 PM.
Did you find this forum helpful?