DAVE TIP of the Day: Reading the program and data size

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
In DAVE 3 and DAVE 4, when you compile your code, in the console window, you can find out the program and variable size.

Here’s an example from the console window:
"C:\DAVEv4\DAVE-4.1.4\eclipse\ARM-GCC-49/bin/arm-none-eabi-size" --format=berkeley "XMC13_EXAMPLE.elf"
text data bss dec hex filename
9193 132 1116 10441 28c9 XMC13_EXAMPLE.elf


‘text’ is what ends up in FLASH memory
‘data’ is used for initialized data
‘bss’ contains all the uninitalized data
'dec' is the total program and data size in decimal value
'hex' is the total program and data size in hexadecimal value
0 Likes
1 Reply
User11773
Level 4
Level 4
First like received First solution authored
Does 'text' include the initialization data for 'data'?
Do you need to add 'data' & 'bss' to get basic RAM usage?
0 Likes