MEM Module
Application Program Interface
2-209
GROUP {
.const: {}
.printf (COPY): {}
} > IRAM
Tconf Name: CONSTSEG
Type: Reference
Example:
bios.MEM.CONSTSEG = prog.get("myMEM");
❏
Data Section (.data)
. This memory segment contains program data.
This segment can be located in ROM or RAM.
Tconf Name: DATASEG
Type: Reference
Example:
bios.MEM.DATASEG = prog.get("myMEM");
❏
Data Section (.cio)
. This memory segment contains C standard I/O
buffers.
Tconf Name: CIOSEG
Type: Reference
Example:
bios.MEM.CIOSEG = prog.get("myMEM");
Load Address tab
❏
Specify Separate Load Addresses
. If you put a checkmark in this
box, you can select separate load addresses for the sections listed
on this tab.
Load addresses are useful when, for example, your code must be
loaded into ROM, but would run faster in RAM. The linker allows you
to allocate sections twice: once to set a load address and again to set
a run address.
If you do not select a separate load address for a section, the section
loads and runs at the same address.
If you do select a separate load address, the section is allocated as
if it were two separate sections of the same size. The load address is
where raw data for the section is placed. References to items in the
section refer to the run address. The application must copy the
section from its load address to its run address. For details, see the
topics on Runtime Relocation and the .label Directive in the Code
Generation Tools help or manual.
Tconf Name: ENABLELOADADDR
Type: Bool
Example:
bios.MEM.ENABLELOADADDR = false;
❏
Load Address - BIOS Code Section (.bios)
. The memory segment
containing the load allocation of the section that contains DSP/BIOS
code.
Tconf Name: LOADBIOSSEG
Type: Reference
Example:
bios.MEM.LOADBIOSSEG =
prog.get("myMEM");