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.

"Sections" significations

Hello,

*Can anyone explain for me the meaning of these sections:

".text"; ".stack"; ".bss"; ".cinit"; ".cio"; ".const"; ".switch" ;".sysmem" and ".far".

*What's the advantages to declare a heap in a such memory?

 Finally, how can I get the size of my program and its exact location in the memory?

 

Regards,

  • These are the sections generated by the compiler. Some sections such as .text, .cinit, .const are initialized while others such as .bss, .stack, .sysmem are uninitialized. These sections and their contents are described in the C/C++ Compiler Users Guide. You can find links to the Compiler Users Guide for the different device families at this link: http://processors.wiki.ti.com/index.php/Before_asking_for_CGT_support

    The link map file generated as part of the link step when building your program will show you the size and location of the different sections. The link process is described in detail in the Assembly Language Tools Users Guide, which you can also find at the above link.