The Compile-Link-Run Cycle

Compilation and linking may be combined into one step --- for small programmes.

Examples --- Cosmos, Sun F90 Compiler


  Either:
      use the 4.2 compiler, 
  or
      use 5.0 or 6.0 compiler with "-lF77"

  f90 -c quadratic.f90
  f90 -o quad quadratic.o
which may be combined as
  f90 -o quad quadratic.f90

Static Linking:

Here the NAg library is statically-linked (.a) in:

  f90 -o nag_ex nag_example.f90 -lnag 
  f90 -Bstatic -o nag_ex nag_example.f90 -lnag 
ensures all libraries are statically-linked.

Dynamic Linking

    f90 -o quad quadratic.o /software/nag/naglib_f77_mark19/libnag.so.19 

Dynamic vs Static Linking


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_course_fortran_90/_reml_grp/index.reml
On: 10/2/2003 at 10:33:52
Options: reml2 -i noindex -l long -o html -p multiple