HP Pascal/iX Programmer's Guide (31502-90023)

B- 6
Pascal compiler, which compiles your program and stores the resultant
code in an object file. The name of the object file ends in .o (if the
source file name is prog.p, the object file name is prog.o). If prog.p
is the only file parameter of a particular pc command, and it compiles
and links successfully, then the object file is not saved.
If the compiler does not find errors in the program, the
pc
command calls
the linker,
ld
, which links the object file with required library files
into a program file. The name of the program file is a.out (unless you
specify another name in the
pc
command) and it resides in the directory
from which
pc
was invoked. The program file is ready to run.
Figure B-1 shows how a file named
prog.p
becomes a running program on
HP-UX.
Figure B-1. How a File Becomes a Running Program on HP-UX