Advanced LDF Commands
The MEMORY{} command appears in a scope that is available to
any SHARED_MEMORY{} command or PROCESSOR{} command that uses
the shared memory. To achieve this type of scoping across
multiple links, place the shared MEMORY{} command in a
separate LDF and use the INCLUDE() command to include that
memory in both links.
MEMORY
{
my_shared_ram
}
SHARED_MEMORY
{
OUTPUT(shared.sm)
SECTIONS
}
PROCESSOR p0{
processor_commands with link against shared memory }
PROCESSOR p1{
processor_commands with link against shared memory}
Figure 5-11. LDF Scopes for SHARED_MEMORY{}
5-40
{
TYPE(RAM) START(0x04000000) LENGTH(8k) WIDTH(32)
}
{
my_shared_sections{ section_commands }
> my_shared_ram
}
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?