Using DSPLIB
2.2.2Calling a DSPLIB Function From C
In addition to correctly installing the DSPLIB software, follow these steps to include a DSPLIB function in the code:
-Include the function header file corresponding to the DSPLIB function
-Link the code with dsp64plus.lib
-Use a correct linker command file for the platform used.
The examples in the DSP\Examples folder show how to use the DSPLIB in a Code Composer Studio C envirionment.
2.2.3Calling a DSP Function From Assembly
The C64x+ DSPLIB functions were written to be used from C. Calling the functions from assembly language source code is possible as long as the calling function conforms to the Texas Instruments C64x+ C compiler calling conventions. For more information, see Section 8 (Runtime Environment) of TMS320C6000 Optimizing C Compiler User’s Guide (SPRU187).
2.2.4DSPLIB Testing − Allowable Error
DSPLIB is tested under the Code Composer Studio environment against a reference C implementation. You can expect identical results between Reference C implementation and its Assembly implementation when using test routines that focus on
2.2.5DSPLIB Overflow and Scaling Issues
The DSPLIB functions implement the same functionality of the reference C code. You must conform to the range requirements specified in the API function, and in addition, restrict the input range so that the outputs do not overflow.
In FFT functions, twiddle factors are generated with a fixed scale factor; i.e., 32767(=215−1) for all