Linking a Simple C-Based Source File
$IOLIB
= libsim.dlb;
#else
// !__USING_LIBSIM
$IOLIB
= libio.dlb;
#endif
//
// When an object that was compiled as C++ is included on the
// link line, the __cplusplus macro is defined to link with the
// C++ libraries and run-time mechanisms. Use the compiler driver
// (cc219x) to link C++ compiled objects to
// any static initialisations and template C++
// matters are resolved.
#ifdef __cplusplus
$CLIBS
= libc.dlb, libdsp.dlb, libcpp.dlb, libcpprt.dlb;
$START
= 219x_cpp_hdr.doj;
#else
// !__cplusplus
$CLIBS
= libc.dlb, libdsp.dlb;
$START
= 219x_hdr.doj;
#endif
//
__cplusplus
// Libraries from the command line are included
// in COMMAND_LINE_OBJECTS.
$OBJECTS
= $START, $INTTAB, $COMMAND_LINE_OBJECTS;
$LIBRARIES = $IOLIB, $CLIBS;
// This memory map is set up to facilite testing of the tool
// chain. Code and data area are as large as possible. Code
// is placed in page 0, starting with space reserved for the
// interrupt table. All data is placed in page 1. Note that
// the run-time header must initialize the data page registers
// to 1 to match this placement of program data. All pages are
// 64K words.
MEMORY
{
// The memory section where the reset vector resides
mem_INT_RSTI { TYPE(PM RAM) START(0x000000) END(0x00001f)
WIDTH(24) }
D-10
__USING_LIBSIM
VisualDSP++ 3.5 Linker and Utilities Manual
ensure that
for 16-Bit Processors
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?
Questions and answers