Test your program on the current system so you have a copy
of the results.
Use the tar command (see the HP-UX Reference manual)
with the cv options to transfer the source files you want
to migrate to tape.
Use the tar command with the r option to transfer any associated data files to
tape.
Install the source files and any related data files
on the HP 9000 workstation or server using the tar command with the x option.
Check your makefiles for any implementation-specific
options. Change programs depending on implementation-specific command options.
On HP-UX systems, these options are generally preceded by -W or +, and may include options to be passed to ld or cpp. You can optionally include the -g option to permit symbolic debugging.
Review Chapter 5 “Programming
for Portability ” and “Practices
to Avoid ” and check over the source code for system-dependent
programming. (If the source files are extensive, you may want to
skip this step and catch errors when you run lint or compile.)
Search for instances of #include files and make sure that the files or routines
included appear in the correct directory or library on the HP 9000
workstation or server.
Run lint, a C program checker that verifies source code
and prints warning messages about problems with the source code
style, efficiency, portability, and consistency.
Compile the program on the HP 9000 workstation or
server using the cc command. (Refer to the HP C/HP-UX Reference
Manual for details about the cc command and options, and explanations of error, warning,
and panic messages.) Change the source code to resolve any messages
you receive.
Recompile the program until you receive no messages.
Link the program. The linker reports any symbols
that cannot be found.
Run the program on the HP 9000 workstation or server.
Compare the results with those received on the original computer.