Relinking an existing executable file

The linker accepts executable files as input, so you can link an existing executable file with updated object files.

You cannot, however, relink executable files that were previously linked using the -flto option.

If you have a program consisting of several source files and only make localized changes to some of the source files, you do not necessarily have to compile each file again. Instead, you can include the executable file as the last input file when compiling the changed files:
ibm-clang -o mansion front_door.c entry_hall.c parlor.c sitting_room.c \
    main_bath.c kitchen.c dining_room.c pantry.c utility_room.c

  vi kitchen.c # Fix problem in OVEN function

  ibm-clang -o newmansion kitchen.c mansion
Limiting the number of files to compile and link the second time reduces the compilation time, disk activity, and memory use.