- Sun Jun 13, 2021 10:28 pm
#51039
Hi mike.
I have just got the code to compile from RoverMEMS branch, but I needed to fork your code and make some quick fixes.
Your most recent merge had accidentally left some merge conflict markers in the actual file.
I have raised a Pull Request to your GitHub fork, so you can just merge these fixes back into your main branch if you wish.
https://github.com/mike501/speeduino/pull/1
So now I have got the code compiled - I do see a warning about the amount of RAM left for local variables.
I am not sure if 297 bytes is enough to run normally, or if I should have a slightly smaller package that runs slightly slower?
I had followed the recommended steps which said this;
I have just got the code to compile from RoverMEMS branch, but I needed to fork your code and make some quick fixes.
Your most recent merge had accidentally left some merge conflict markers in the actual file.
I have raised a Pull Request to your GitHub fork, so you can just merge these fixes back into your main branch if you wish.
https://github.com/mike501/speeduino/pull/1
So now I have got the code compiled - I do see a warning about the amount of RAM left for local variables.
Code: Select all
- is this a concern, and if so should I turn my optimization back from the recommended -O3 to -O2 or something?Sketch uses 177102 bytes (69%) of program storage space. Maximum is 253952 bytes.
Global variables use 7895 bytes (96%) of dynamic memory, leaving 297 bytes for local variables. Maximum is 8192 bytes.
Low memory available, stability problems may occur.
I am not sure if 297 bytes is enough to run normally, or if I should have a slightly smaller package that runs slightly slower?
I had followed the recommended steps which said this;
There is an option available for changing the compiler optimization level, which can improve . By default, the IDE uses the -Os compile option, which focuses on producing small binaries.
As the size of the Speeduino code is not an issue but speed is a consideration, changing this to -O3 produces better results (Approximately 20% faster, with a 40% larger sketch size)