User`s guide

C for DSP56800E
Deadstripping and Link Order
134
Targeting MC56F83xx/DSP5685x Controllers
Libraries built with the CodeWarrior C compiler contribute only the used objects to
the linked program. If a library has assembly files or files built with other C compilers,
the only files that contribute to the linked program are those that have at least one
referenced object. If you enable deadstripping, the linker completely ignores files
without any referenced objects.
The Link Order page of the project window specifies the order (top to bottom) in
which the DSP56800E linker processes C source files, assembly source files, and
archive (.a and .lib) files. If both a source-code file and a library file define a symbol,
the linker uses the definition of the file that appears first, in the link order. To change
the link order, drag the appropriate filename to a different place, in this page’s list.