4 Compiling and Linking

ADAM applications which call ARY_ routines may be linked with the link script ary_link_adam, which should be specified on the linker command line. For example, to compile and link an application called adamprog using the alink command, the following might be used:

  % alink adamprog.f -o adamprog ‘ary_link_adam‘

A “stand-alone” (i.e. non-ADAM) version of the ARY_ system is also available and should be used by those applications which do not use ADAM facilities. This version may be obtained by specifying the options file ary_link on the linker command line. For example, to compile and link a stand-alone C application called prog, the following might be used:

  % gcc  prog.c -o prog ‘ary_link‘

Both versions of the ARY_ system contain the same set of user-callable routines.