All the necessary compilation and linking is handled by the Starlink utility alink. The general format of an alink command is,
% alink code options libraries
-L/star/asterix/sun4_Solaris/lib -lastlib_adam -lastlib -lwfclib -lcat \ -L/star/lib -lfitsio -lref -lhds -lprm -lprm_a -lard_adam -lsla -lgrp_adam \ -lgrp -lerr -lerr_adam -lpsx -lcnf -lfio_adam -lfio -lastpda -lpda -lems -lchr
Thus the executable application simple can be produced with the following command,
% alink simple.f `ast_link_adam` dtask_applic.f: dtask_applic: ./simple.f: simple: simple_task: Linking:
All trace of the dtask_applic wrapper is removed after linking. The final executable binary will have a size of 2+ Mb due to all the linked libraries.