SLAU131V October 2004 – February 2020
Initialized sections contain executable code or initialized data. The contents of these sections are stored in the object file and placed in MSP430 memory when the program is loaded. Each initialized section is independently relocatable and may reference symbols that are defined in other sections. The linker automatically resolves these references. The following directives tell the assembler to place code or data into a section. The syntaxes for these directives are:
.text | |
.data | |
.sect "section name" | |
.intvec "section name", routine name |
The .sect directive can also be used to create initialized subsections. See Section 2.4.6, for more information on creating subsections.