[Patch, fortran, RFC] PR 40958 Reduce size of module files

Paul Richard Thomas paul.richard.thomas@gmail.com
Mon Nov 28 15:01:00 GMT 2011


Dear All,

I am rather pressed with getting the class array patch ready for
submission and so do not have time for module issues at present.

That said, I took a quick look through the appropriate bits of
module.c to see what might be involved in not expanding module files
to include other, USEd modules. I think that it could be quite a
straight forward matter to do the same as the NAG compiler; ie. to add
USE statements to the module files.  The information is available for
each namespace in the use_stmts structure, so the write part should be
relatively easy to do.  I ***THINK*** that the changes to module_read
should be easy, since the effect should be exactly the same as if the
USED modules had been read previously.  Thus, the main addition would
have to be the utilisation of the USE statments stored in the module
file.

If the quoted ratio between gfortran and NAG module file sizes are
typical, this would be a very high return exercise.

Cheers

Paul



More information about the Fortran mailing list