Here's some output of arduino-cli I get after compiling an increasingly complex project:
Sketch uses 13834 bytes (42%) of program storage space. Maximum is 32256 bytes.
Global variables use 1495 bytes (72%) of dynamic memory, leaving 553 bytes for local variables. Maximum is 2048 bytes.
I'm using quite a couple of libraries. How can I figure out which global variables consume most dynamic memory? I'm looking something along the lines of an nm
equivalent for AVR, but the problem is that even then I wouldn't know how to translate it to specific variables in the source code.
question from:
https://stackoverflow.com/questions/65928057/given-an-arduino-ino-file-how-to-determine-which-parts-of-code-consume-most-dy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…