SLAU131V October 2004 – February 2020
a.obj b.obj c.obj /* Input filenames */
--output_file=prog.out /* Options */
--map_file=prog.map
MEMORY /* MEMORY directive */
{
RAM: origin = 0x0200 length = 0x0100
EXT_MEM: origin = 0x1000 length = 0x1000
}
SECTIONS /* SECTIONS directive */
{
.text: > EXT_MEM
.data: > EXT_MEM
.bss: > RAM
}
For more information, see Section 8.5.4 for the MEMORY directive, and Section 8.5.5 for the SECTIONS directive.