Replies: 2 comments 2 replies
-
If I remember my thinking on this, the So putting it all together, I didn't feel like the 10-14 bytes of savings was worth the hassle. Maybe if I feel motivated before the next release, I might look into this. I have to regenerate the entire suite of benchmarks (AutoBenchmark and MemoryBenchmark), which is not hard, but time consuming, even with all the automated scripting infrastructure that I have built myself. So I'm probably not going to do all the work, just for this. |
Beta Was this translation helpful? Give feedback.
-
If it's just for Debug, and you want to save even more space ... use self-defining data!
and write with
And the C-String (only up to 3 printable chars, and better suited where RAM is not an issue)
and write with
(You can probably guess that I am an Assembler programmer at heart) |
Beta Was this translation helpful? Give feedback.
-
It's possible to save 12 bytes of static RAM by moving
sStatusStrings
array into Flash.HelloCoroutine.ino
(Nano, with extraCoroutineScheduler::list(Serial);
inprintHelloWorld
)Initial Memory : 2820 Flash, 240 Global
Making changes to
Coroutine.h
Making changes to
Coroutine.cpp
Flash memory: 2820 Flash, 228 Global
A saving of 12 whole bytes!
(PS Some other irrelevant local changes made for Serial baudrate etc, should Flash not exactly match official version)
Beta Was this translation helpful? Give feedback.
All reactions