Question:
How to use a different C and C++ standard library than the Dinkum one supplied with CCES?
Answer:
The CCES supplied C++ (libcpp*.dlb) and C standard libraries (libc.dlb etc) for Blackfin parts are built from source supplied by Dinkum and included in each of the part specific CCES folders under Blackfin/lib. The include files corresponding to these are in the Blackfin/include CCES folder. By default the ccblkfn compiler driver uses these folders for the include path and library search path.
If we want to use a different C and C++ library ,will need to control the include paths and library search paths . The first thing to do will be to use the switches to disable the standard include and library search paths, the switches to do this are:
-no-std-inc
Prevents the driver from passing any default include directories to the compiler.
-no-std-lib
Prevents the driver from passing any default libraries or library directories to the linker.
This will then allow to add new search paths that have your new include and libraries first using following switches:
-I <dir>[<;|,>dir...]
Adds `dir' to the list of directories searched for include files - multiple include directories are searched in the order specified and may be given as a semicolon- or comma-separated list of directories.
-L <dir>[<;|,>dir...]
Adds `dir' to the list of directories searched for libraries - multiple library directories are searched in the order specified and may be given as a semicolon- or comma-separated list of directories.