LDF Programming Examples for Blackfin Processors
Linking for Complex C Source File –
Example 2
Listing 1-3 shows an example LDF that describes the memory placement
of a C source file. This file contains code and data that is to reside in, and
execute from, L1, L2, Scratchpad SRAM, and external SDRAM Banks 0
through 3. The .
which are used to describe specific memory and system information. Refer
to Notes for
Listing 3-1 on page 3-4
plex example.
Listing C-8. Complex C Source File Example
static section ("Fast_Code") void MEM_DMA_ISR(void){
...
}
static section ("SDRAM_0") int page_buff1[0x08000000];
static section ("SDRAM_1") int page_buff2[0x08000000];
static section ("SDRAM_2") int page_buff3[0x08000000];
static section ("SDRAM_3") int page_buff4[0x08000000];
static section ("Data_BankA") int coeffs1[256];
static section ("Data_BankB") int input_array[0x2000];
int x, y, z;
void main(void){
int i;
x = 0x5555;
...
}
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
file includes two commands,
LDF
MEMORY
for information on items in this com-
and
,
SECTIONS
C-11
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?