SLAU131Y October 2004 – June 2021
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 3.5.6, for more information on creating subsections.