Memory (Part 2)

 

The programs you write have to be compiled, linked, and loaded. The following figure shows a program whose source code resides in four files. Running these files through a compiler creates object files. A linker then merges these object files and any external libraries needed into a load file. This load file is the executable program that is stored on your computer's file system.

When the linker creates the load file, it combines the information contained within each of the object files into one unit. Combining them is relatively straightforward. The load file at the bottom of this figure simplifies this file. A load file contains more sections and more information.


You can find tips that we've already sent out in our Tip Archive

Help us improve these tips!