Linking A Simple C-Based Source File - 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 a Simple C-Based Source File

Listing D-7
shows an example .
ment of a simple C source file
Listing D-6. Simple C Source File
int x_input[256];
main()
{
int i;
for (i=0, i<256; i++)
x_input[i] = 1;
}
// end main
Listing D-7. Simple C-based LDF Example for an ADSP-2191DSP
ARCHITECTURE(ADSP-2191)
SEARCH_DIR( $ADI_DSP\219x\lib )
// Example interrupt vector table
$INTTAB
= 219x_int_tab.doj;
// libsim provides fast, mostly host emulated I/O only supported
// by the simulator. The libio library provides I/O processing
// mostly done by the 219X target that is supported by the
// emulator and simulator. Libio is the default used,
// but if __USING_LIBSIM is defined libsim will be used.
//
from the driver command line, use:
//
"-flags-link -MD__USING_LIBSIM=1"
//
in the IDDE, add -MD__USING_LIBSIM=1 to
//
to the Additional options field of the Link page
#ifdef __USING_LIBSIM
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
LDF Programming Examples for ADSP-21xx DSPs
LDF
(Listing
file that describes the memory place-
D-6).
D-9

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