Chapter 2 35
What Happens When You Compile and Link a Program
2 What Happens When You
Compile and Link a Program
This chapter describes the process of compiling and linking a program.
• “Compiling Programs on HP-UX: An Example” provides an overview
of compiling on HP-UX.
• “Looking “inside” a Compiler” describes the process of creating an
executable file in more detail.
• “Linking Programs on HP-UX” describes how ld creates an
executable file from one or more object files.
• “Linking with Libraries” describes conventions for using libraries
with ld.
• “Running the Program” describes the process of loading and binding
programs at run time.
• “Linker Thread-Safe Features”describes the thread-safe features.