Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
113 views
in Technique[技术] by (71.8m points)

Given an arduino .ino file, how to determine which parts of code consume most dynamic memory?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...