This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Determining Memory Size



Hi,

 

I am relatively new to using Code Composer.  Currently I am using it to program a MSP430 and am running into issues with memory size.  Lately, I have over exceeded the bounds for code size; I am alerted that the .bss size is now too large for my particular chip.  I am curious, how can I find out the size of .bss after I have reduced my code?  What sorts of changes to my code affects .bss?  Can I just simply remove lines of code to reduce it?

Any insight on memory size and code size, etc would be greatly appreciated.

 

Thanks!

 

  • The linker option --map_file=file (or -m=file for short) creates a file which shows, among other things, the size of your .bss section.  The MSP430 compiler book http://www.ti.com/lit/pdf/slau132 , in a section titled Specifying Where to Allocate Sections in Memory, says that the .bss section contains global and static data variables.  So, the only way to reduce the size of this section is to reduce the number and/or size of your global and static data variables.

    Thanks and regards,

    -George