XL Fortran for AIX 8.1

User's Guide


Efficient Static Linking

Dynamic and Static Linking discusses the respective strengths and weaknesses of static and dynamic linking. A technique for static linking that requires relatively little disk space is to link any XL Fortran libraries statically but leave references to other system libraries dynamic. This example statically links just the XL Fortran library:

# Build a temporary object:
   ld -r -o libtmp.o -bnso -lxlf90
# Build the application with this object on the command line:
   xlf95 -o appl appl1.o appl2.o libtmp.o


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]