Linking For C Source File - Example 1 - 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 for C Source File – Example 1
Linking for C Source File – Example 1
Listing C-7
shows an example LDF that describes the memory placement
of a simple C source file
is to reside in, and execute from, L2 SRAM. This example also assumes
that the code and data declared in L2 memory is cacheable within L1 code
and data memories. The LDF file includes two commands,
, which are used to describe specific memory and system infor-
SECTIONS
mation. Refer to Notes for
items in this basic example.
Listing C-6. Simple C Source File Example 1
int myArray[256];
void main(void){
int i;
for(i=0; i<256; i++)
myArray[i] = i;
}
// end main ()
Listing C-7. Example: Simple C-based .LDF File for ADSP-BF535
Processor
ARCHITECTURE(ADSP-BF535)
SEARCH_DIR( $ADI_DSP\Blackfin\lib )
#define LIBS libsmall535.dlb libc535.dlb libm3free535.dlb
libevent535.dlb libio535.dlb libcpp535.dlb libcpprt535.dlb
libdsp535.dlb libsftflt535.dlb libetsi535.dlb idle535.doj
$LIBRARIES = LIBS, librt535.dlb;
$OBJECTS = crts535.doj, $COMMAND_LINE_OBJECTS crtn535.doj;
MEMORY{
C-8
(Listing
C-6) which contains code and data that
Listing 3-1 on page 3-4
VisualDSP++ 3.5 Linker and Utilities Manual
and
MEMORY
for information on
for 16-Bit Processors

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?

Questions and answers

Related Products for Analog Devices VisualDSP++ 3.5

Table of Contents