The linker combines and arranges data and instructions from one or more object code files into a single file, or
image. This image is ready to execute on the target platform. The CodeWarrior linker uses settings from the host's integrated development environment (IDE) or command line to determine how to generate the image file.
The linker also optionally reads a linker command file. A linker command file allows you to specify precise details of how data and instructions should be arranged in the image file.
Figure 1 shows the steps the CodeWarrior linker takes to build
an executable image.
Figure 1. CodeWarrior Linker Steps 
- read settings: retrieves your settings from the IDE or the command line to determine how to perform subsequent steps
- read linker command file: retrieves commands to determine how to arrange object code in the final image
- read object code: retrieves data and executable objects that are the result of compilation or assembly
- delete unused objects ("deadstripping"): deletes objects that are not referred to by the rest of the program
- resolve references among objects: arranges objects to compose the image then computes the addresses of the objects
- output link map and image files: writes files on the host system, ready to load onto the target system