informational question: compile time of large DATA arrays

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Thu Sep 7 14:11:00 GMT 2006


Daniel Franke <franke.daniel@gmail.com> wrote on Thu, 07 Sep 2006:
> I am currently waiting for gfortran to finish compilation of a module
> that looks like this:
>
> MODULE foo
> REAL :: grid(0:          50 , 0:       10000 )
> DATA grid(           0 ,           0 ) /    1.000000      /
> DATA grid(           0 ,           1 ) /   0.9999750      /
> DATA grid(           0 ,           2 ) /   0.9999000      /
> [ ... ]
> CONTAINS
>  [a simple function working on the grid]
> END MODULE
>
> Could someone enlighten my why it takes more than 20 minutes
> (3.2GHz P4, 2GB RAM) to compile a module like this?

Apparently the case where the user enumerates the array elements was  
not considered important enough when PR13465 was fixed, see  
<http://gcc.gnu.org/ml/fortran/2004-08/msg00131.html> and the PR.

I think you should open a new bug report.

- Tobi


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Fortran mailing list