LDF File Overview
Example 2 - Basic .LDF File for ADSP-218/9x DSPs
Listing 3-1
is an example of a basic
matted for readability). Note the MEMORY{} and SECTIONS{}
commands and refer to
Other examples for assembly and C source files are in
Examples for Blackfin Processors"
ADSP-21xx
DSPs".
Listing 3-2. Example .LDF File for ADSP-2191 DSP
ARCHITECTURE(ADSP-2191)
SEARCH_DIR($ADI_DSP\219x\lib)
$OBJECTS = $COMMAND_LINE_OBJECTS;
MEMORY
/* Define and label system memory
{
/* List of global memory segments
seg_rth
{TYPE(PM RAM) START(0x000000) END(0x000241) WIDTH(24)}
seg_code
{TYPE(PM RAM) START(0x000242) END(0x007fff) WIDTH(24)}
seg_data1
{TYPE(DM RAM) START(0x008000) END(0x00ffff) WIDTH(16)}
}
PROCESSOR p0
{
LINK_AGAINST ( $COMMAND_LINE_LINK_AGAINST )
OUTPUT ( $COMMAND_LINE_OUTPUT_FILE )
SECTIONS
{
sec_rth
sec_code
sec_code2
sec_data1
}
}
3-6
"Notes on Basic .LDF File Examples" on page
/* the first (only?) processor in the system */
/* List of sections for processor P0 */
{INPUT_SECTIONS ( $OBJECTS(rth))}
{INPUT_SECTIONS ( $OBJECTS(code)}
{INPUT_SECTIONS ( $OBJECTS(y_input)}
{INPUT_SECTIONS ( $OBJECTS(data1))}
VisualDSP++ 3.5 Linker and Utilities Manual
file for ADSP-2191 DSPs (for-
.LDF
and
"LDF Programming Examples for
3-7.
"LDF Programming
*/
*/
> seg_rth
> seg_code
> seg_code
> seg_data1
for 16-Bit Processors
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?