When gfortran compiles a module on OSX which declares defined size arrays the resulting module object file contains the array's allocated memory making the files potentially enourmous. e.g.
module test_module real, dimension(10000000) :: a end module test_module gfortran -c test_module.f90 If the array size is 10000000 then the size of test_module.o is 40000356 bytes. This doesn't happen with the other fortran compilers I use, nor with gfortran on linux. akt% uname -a Darwin m21.cpom.ucl.ac.uk 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc akt% /opt/local/bin/gfortran -v Using built-in specs. Target: powerpc-apple-darwin8.10.0 Configured with: ../gcc-4.2.1/configure --prefix=/opt/local --enable-languages=c,c++,java,objc,obj-c++,fortran --libdir=/opt/local/lib/gcc42 --includedir=/opt/local/include/gcc42 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-local-prefix=/opt/local --with-system-zlib --disable-nls --disable-multilib --program-suffix=-mp-4.2 --with-gxx-include-dir=/opt/local/include/gcc42/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local Thread model: posix gcc version 4.2.1 -- Summary: Large module object files when declare arrays on Mac OSX Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: akt at cpom dot ucl dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120