Sections

The compiler produces relocatable blocks of code and data called sections. The sections are allocated into memory in a variety of ways to conform to a variety of system configurations. For more information about sections and allocating them, see the introductory object file information in Section 8. For details about C7000 section names, see the C7000 Embedded Application Binary Interface (EABI) Reference Guide (SPRUIG4).

There are two basic types of sections:

NOTE

Use Only Code in Program Memory

With the exception of code sections, the initialized and uninitialized sections cannot be allocated into internal program memory.

The assembler creates the default sections .text, , and .data. You can instruct the compiler to create additional sections by using the CODE_SECTION and DATA_SECTION pragmas (see Section 5.8.5 and Section 5.8.8).