Kuo-Chien Kai asks:
 
>I was told that an POSIX executable made by c89 on HP-UX can also be
>executed on MPE. However I failed to make this work. The systems
>I am using are HP-UX 9.01 and MPE/iX 5.0. The followings shows
>the steps I've done.
 
Actually, the loadable object is not what is portable. The linkable
object (*.o, *.a) is. You need to link on the target machine, but you
can compile on the host 9000. Simply move the .o file and link it on the
3000 and it should work.
 
Executables on the 3000 are a bit different than on the 9000. In a
nut-shell, the 3000 executable is an executable library
(EXECLIBMAGIC) that contains an LST that points to the SOM. It is
also late binding. Executables on the 9000 contain only a SOM and
for all practical purposes are statically bound. Two different
animals.
 
However, the relocatable objects for the most part are the same,
and that it what you'd want to move between the machines.
 
Hope this helps.
 
M.