KB: The meaning of text, data, and bss in the RSL10 IDE when a build is successful


When you successfully build a project using the RSL10 IDE, you will see the information shown in the figure below. What does this information mean?


The ‘text’ is what ends up in FLASH memory: your code, vector table, and constants.

The ‘data’ is used for initialized data and not the variables. The linker allocates the data in FLASH which then is copied from ROM to RAM in the startup code.

The ‘bss’(Block Started by Symbol) contains all the uninitalized data in RAM, which is initialized with zero in the startup code.

The ‘dec’ (as a decimal number) is the sum of text, data, and bss.