Re: Structure of large link libraries in f95
- From: Joe Krahn <krahn-at-niehs.nih.gov@xxxxx>
- Date: Thu, 30 Mar 2006 16:42:51 -0500
Walter Spector wrote:
Charles Russell wrote:....
...
If 95-99% of the executable code is unused, how does that affect the
compile-link-execute time?
... Should I link in
my whole math library each time? Hard for me to believe that makes sense.
How big is your math library?
And is it possible that you'd want some of your routines in different
modules than others? No one says you need (or should) use one 'ginormous'
module. And remember that you get .o files for modules, just like you get
for non-module files. And you can place all of them in libraries.
Consider the case of a .a library that contains MODULE_A, MODULE_B, and
MODULE_C. If you USE MODULE_A and call a routine in it, the linker needn't
place the other modules into your executable file. Unless, of course,
someone in MODULE_A calls someone in one of the other modules. This works
jut like what you are used to in F77, except a bit coarser.
Linking to a static library only brings in those object file members that are actually referenced. You get the exact same result as listing all of the object files individually. A static lib is just a way to group files together.
Executables can get rather large from just from debugging info and symbols. Try compiling without debug options, then strip symbols from the result (strip <filename>).
Joe
.
- 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
- Re: Structure of large link libraries in f95
- From: robert . corbett
- Re: Structure of large link libraries in f95
- From: Charles Russell
- Re: Structure of large link libraries in f95
- From: Walter Spector
- Re: Structure of large link libraries in f95
- From: Charles Russell
- Re: Structure of large link libraries in f95
- From: Walter Spector
- Structure of large link libraries in f95
- Prev by Date: Re: status of quadruple precision arithmetic in g95 and gfortran?
- Next by Date: Re: status of quadruple precision arithmetic in g95 and gfortran?
- Previous by thread: Re: Structure of large link libraries in f95
- Next by thread: Re: Structure of large link libraries in f95
- Index(es):
Relevant Pages
|