Slide 47 of 67
Notes:
The other main component of the linker command file is the “sections” section. It links the software sections to the hardware names or maps software to hardware. The .text name is a default software section name. We want the .text to go into the ROM section on page zero, which is program space. We want the .bss and the .data, both default software section names, to go into SRAM and EPROM memory space respectively.
This is the technique that we use to map software to hardware. On a more sophisticated program, this section can become more complicated. For example, there are many options. You could align a software section on a certain memory boundary, such as a 32-word boundary, or you could fill in a section of data memory with all zeros or all ones or something similar. So this can be a very sophisticated piece of the software development.