I'm running a bit low on memory and would therefore like to analyze the data & bss section a bit. Below is the output from avr-size...
avr-size --format=berkeley cockpit.elf
text data bss dec hex filename
27024 262 815 28101 6dc5 cockpit.elf
My "Main-Object" (Cockpit) is a singelton whichs "owns" every other (child) objects. All of the childs are allocated on the stack - even though, some of the child objects do use the heap internaly (i.e. linked list). Sizeof(Cockpit) outputs 260bytes. After startup (initalizing the singleton) i have 530bytes free memory. All of my string literals are surrounded by the F()-Macro - so they shouldn't eat up the memory.
I'm trying to analyze the objects with the following command
avr-objdump -C -d -S -t -j .bss -j .data cockpit.elf
In the output i do see some (but not all) of my objects/class/variables/symbols...and...i don't know how to determine the size of the symbols. Is there another command switch to show the size in dec ? Or is there another tool which can do the job ?
What I'm basicly trying to do is, to get a rough understanding to which instance/object the 1077bytes (262+815) from the data/bss section belong to - and where the other 441bytes (2048-1077data-530free) remaining bytes go to