Hands-On Four

  1. Within _nag_wrapper you will find an example of F90 code wrapping a call to a NAg F77 routine. The routine solves systems if linear algebraic equations. The wrapper simplifies calls by eliminating some of the arguments (which are unnecessary in F90) and makes the interface explicit.

    Compile each piece of source code. Link to the NAg routine statically. Check what libraries are dynamically linked (use ldd) and note the size the executable (use ls -l ).

    Fully-statically-link the code. Check the size of the executable again.

    Finally, dynamically link the NAg library. Once again, check which libraries are dynamically linked and the size of the executable.

  2. Within _quadratic_final_C_out you will see yet another version of the quadratic solver. In this one the output routines are written in C --- but two are missing. Add them in, compile, link and run the code.


...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