Using C-Callable IP Libraries
Using a C-callable library is similar to using any software library. You#include
header files for the library in appropriate source files and use thesdscc -I
option to compile your source, for example
> sdscc –c –I –o main.o main.c
When you are using the SDSoC IDE, you add thesesdscc
options by right-clicking on your project, selectingC/C++ Build Settings->SDSCC Compiler->Directories
(orSDS++ Compiler->Directories
for C++ compilation).
> sdscc –sds-pf zc702 ${OBJECTS} –L -l –o myApp.elf
As with the standard GNU linkers, for a library calledlibMyLib.a
, you use-lMyLib
.
When you are using the SDSoC IDE, you add thesesdscc
options by right-clicking on your project, selecting .
You can find code examples that employ C-callable libraries in the SDSoC™ environment installation under thesamples/fir_lib/useandsamples/rtl_lib/arraycopy/use
directories.