Libraries, utilities, bootloaders...
by mougino » Wed Aug 12, 2015 11:28 am
Thanks for the quick response Deneth, I'll try that and keep you updated.
Nicolas
-
mougino
-
- Posts: 75
- Joined: Sat Jul 25, 2015 8:15 am
- Location: Paris, France
-
by mougino » Wed Aug 12, 2015 8:53 pm
Well, in the end I went another direction.
I was starting to get high sram alerts after compilation so I moved stuff to PROGMEM but then I climbed to almost 30k quite spectacularly... So I chose to stick with the debug/!debug use cases but with a differential compilation instead of differential C code (i.e. using preprocessor #ifdef debug rather than if(debug)...) I was able to save 6k of flash memory this way!
So I'll keep using two different binaries and switch between the two by commenting or not the first line of my main ino: #define debug.
Nicolas
-
mougino
-
- Posts: 75
- Joined: Sat Jul 25, 2015 8:15 am
- Location: Paris, France
-
Return to Software Development
Who is online
Users browsing this forum: No registered users and 48 guests