SPRU513Y August 2001 – June 2022 SM320F28335-EP
An output file that has been linked can be linked again with additional modules. This is known as partial linking or incremental linking. Partial linking allows you to partition large applications, link each part separately, and then link all the parts together to create the final executable program. Follow these guidelines for producing a file that you will relink:
The following example shows how you can use partial linking:
Step 1: | Link the file file1.com; use the
--relocatable option to retain relocation
information in the output file out1.out.
file1.com
contains:
|
Step 2: | Link the file file2.com; use the
--relocatable option to retain relocation
information in the output file out2.out.
file2.com
contains:
|
Step 3: | Link out1.out and out2.out.
|