Re: Structure of large link libraries in f95




simon@xxxxxxxxxxxxxx wrote:

Perhaps the solution to this would be for compilers to be able to read
.mod files in archives.
You can put all the object code and corresponding .mod files into a
single '.a' file on unix now, the problem is that (as far as I know)
there aren't any compilers that will read the .mod files directly from
the archive - there would have to be a separate extraction step.

Sun f90/f95 reads .mod files from archives. The archive must be
named in the option argument following the option -M.

That does not solve the OP's problem. Currently, an entire
module must appear in a single source file. When that
source file is compiled, a single object file is produced.
That entire object file will be extracted if even a single
routine in the module is referenced. If a compiler
implemented compile-to-archive, it would produce
separate object files for each routine in the module, all
of which would appear in the archive.

Bob Corbett

.



Relevant Pages

  • Re: Structure of large link libraries in f95
    ... Perhaps the solution to this would be for compilers to be able to read ... ..mod files in archives. ... You can put all the object code and corresponding .mod files into a ... Simon Geard ...
    (comp.lang.fortran)
  • Re: && and || Operator precedence enforcement
    ... > Hi Folks, ... > that I couldn't find one from the archives. ... But after that the conditional statement is ... seen some compilers with an option to force all expressions in a conditional ...
    (comp.lang.c)
  • Re: SMS PUZZLE
    ... Scott and Tom identified your immediate problem, but your routine still ... I also noticed that is another storage class for unit types. ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... Search the archives at http://bama.ua.edu/archives/ibm-main.html ...
    (bit.listserv.ibm-main)
  • [SLE] how to make devel package from tar.gz source file
    ... Can anyone explain "simply" how to produce a devel rpm package from a tar.gz ... (assuming that you did not create the source file in the first ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)