DSP Principles and Applications
Lecture 11: DSP programming with C language
• Why C ? •Imbedded C versus ordinary C
– – – – – Memory model with DSP Interface with assembly Interrupt handling Run time environment Optimization compiling
• The optimizer modifies code to improve the efficiency of C programs.
• The interlist utility interlists C source statements with assembly language output. The assembler translates assembly language source files into machine language object files. The machine language is based on common object file format (COFF). The TMS320C1x/C2x/C2xx/C5x Assembly Language Tools User’s Guide explains how to use the assembler. The linker combines object files into a single executable object module. As it creates the executable module, it performs relocation and resolves external references. The linker accepts relocatable COFF object files and object libraries as input. The archiver allows you to collect a group of files into a single archive file, called a library. Using the archiver, you can modify a library by deleting, replacing, extracting, or adding members. One of the most useful applications of the archiver is building a library of object modules. Three object libraries are shipped with the C compiler: rts25.lib contains ANSI standard run-time-support functions and compiler-utility functions for the TMS320C2x.