Linking An Adsp-219X Mp System With Shared Memory - Analog Devices VisualDSP++ 3.5 Manual

Linker and utilities manual for 16-bit processors
Hide thumbs Also See for VisualDSP++ 3.5:
Table of Contents

Advertisement

Linking an ADSP-219x MP System With
Shared Memory
When you link executable files for multiprocessor (MP) memory or a
shared memory system, the LDF describes the shared memory and each
processor's separate memory (with offsets), and places code for each pro-
cessor.
Listing D-9
LDF.
Listing D-9. LDF for a Multiprocessor System with Shared Memory
ARCHITECTURE(ADSP-219x)
SEARCH_DIR( $ADI_DSP\219x\lib )
// Multiprocessor memory space is allocated with the MPMEMORY{}
// command. The values represent an "addend" that the linker
// uses when it resolves undefined symbols in one DXE to symbols
// defined in another DXE. The addend is added to each defined
// symbol's value.
// For example, PROCESSOR project PSH0 contains the undefined
// symbol "buffer", PROCESSOR project PSH1 defines "buffer"
// at address 0x22000. The linker will "fix up" the reference
// to "buffer" in PSH0's code to address:
//
0x22000 + MPMEMORY(PSH1) = 0x22000 + 0x280000 = 0x2a2000
MPMEMORY
{
PSH0 { START (0x200000) }
PSH1 { START (0x280000) }
}
MEMORY {
seg_reset
{ TYPE(PM RAM) START(0x00000) END(0x00004) WIDTH(24) }
seg_itab
{ TYPE(PM RAM) START(0x000004) END(0x0000ff) WIDTH(24) }
seg_code
{ TYPE(PM RAM) START(0x000100) END(0x00ffff) WIDTH(24) }
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
LDF Programming Examples for ADSP-21xx DSPs
shows a multiprocessor system and shared memory
// Used for all processors. Alternatively, a
// PROCESSOR could describe its own MEMORY
D-19

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?

Related Products for Analog Devices VisualDSP++ 3.5

Table of Contents