First page Back Continue Last page Overview Graphics
A section is a block of relocatable code or data referenced by a section name.
The code and data of a program can be placed in different memory areas by specifying sections.
The location counter for a section will start at zero (unless a different origin is specified) and count up for each byte of code and data in that section.
Sections from various program modules are combined by the linker. Code and data from sections with the same name will be assigned to sequential locations in memory.
Code from the various sections will be placed in the order that they are listed to the linker. The starting address for each section type must be specified to the linker. Typically code will be placed in read only memory (ROM) and data in random access memory (RAM).