This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Limiting compile time memory usage?
Steve,
> Harald, the same developer suggested a bug report about excessive
> memory usage may be in order. Can you submit a code example that
> shows the problem?
I have selected the worst example and stripped it down, see
PR 30285. The example consists of a minimal main program and
3 "use"d .mod files that are quite large individually (~3 MB),
because they carry a lot of baggage. (Many symbols seem to
be due to the use of MPI or due to the "use" of other modules.)
I have provided the output for the compilation with -fmem-report
and -ftime-report with inclusion of 2 of the 3 modules.
Uncommenting the indicated "use" of the 3rd module lets gfortran
step over the 500 MB line.
Could you please check if the information provided in the
PR is clear enough and sufficient?
Cheers,
-ha