Re: Structure of large link libraries in f95
- From: robert.corbett@xxxxxxx
- Date: 29 Mar 2006 17:55:55 -0800
Charles Russell wrote:
Is there any way in f95 to structure a large link library such as LAPACK
without either 1) having to link the whole library when calling only a
few routines or 2) having to create and maintain a large collection of
explicit interfaces?
It could depend on the OS you are using, but most operating systems
still support archives.
LAPACK is structured as separately compileable routines. If you
put the routines in an archive, programs linked against the archive
will extract only the routines the program needs from the archive.
LAPACK , at least up to the third edition of LAPACK, uses
FORTRAN 77 compatible interfaces, so you don't need explicit
interfaces. If you want to use explicit interfaces, you need to
exercise a bit of caution. Some LAPACK implementations come
with include files that contain explicit interfaces for all the user
accessible routines in the implementation. There are
compiler/ linker combinations that will pull in all of the routines
named in the include file into the executable file.
Bob Corbett
.
- Follow-Ups:
- Re: Structure of large link libraries in f95
- From: Charles Russell
- Re: Structure of large link libraries in f95
- References:
- Structure of large link libraries in f95
- From: Charles Russell
- Structure of large link libraries in f95
- Prev by Date: Re: .mod generation question
- Next by Date: Re: status of quadruple precision arithmetic in g95 and gfortran?
- Previous by thread: Structure of large link libraries in f95
- Next by thread: Re: Structure of large link libraries in f95
- Index(es):
Relevant Pages
|