Skip to main content
11 events
when toggle format what by license comment
Jun 16, 2020 at 10:01 history edited CommunityBot
Commonmark migration
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Oct 12, 2016 at 16:10 history edited Basile Starynkevitch CC BY-SA 3.0
added 163 characters in body
Oct 12, 2016 at 15:22 vote accept Tim
Oct 12, 2016 at 6:51 comment added Tim It's on track but that won't come before a while. I already use -Os on other systems with more recent toolchains, but I wasn't aware of this -flto parameter, thanks for pointing it out. (Note that I've done a few tests with GCC -Os and -O1-3 parameter a few weeks ago on GCC 5.4.1 and the RAM was the same all the time. The FLASH and the MCU running time were different though. That was not on the same MCU as the one I mention in this Q/A)
Oct 11, 2016 at 18:18 comment added Basile Starynkevitch Asking your boss to get you a newer GCC (either by providing you with up to date binary tools, or by giving you time for recompilation of GCC) is IMHO worthwhile, because quite probably newer GCC would optimize slightly better (do you know about gcc -flto -Os ?) and you might gain some memory....
Oct 11, 2016 at 15:59 comment added Tim I already have one, it's just really old. Working on a new one is not on my scope, nor would it fit in my schedule. But sure, some things would be easier with up to date tools.
Oct 11, 2016 at 15:57 comment added Basile Starynkevitch Can't you get (perhaps by compiling GCC from its source code) a GCC compiler for your platform?
Oct 11, 2016 at 14:59 comment added Tim Thank you, I was actually a bit expecting this kind of answer, i.e. keep it statically allocated so as to be sure I don't end up with a stack overflow. Unfortunately I have not a recent GCC compiler and the code isn't small.
Oct 11, 2016 at 12:42 history edited Basile Starynkevitch CC BY-SA 3.0
added 226 characters in body
Oct 11, 2016 at 12:09 history answered Basile Starynkevitch CC BY-SA 3.0