This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compilation time of block data


this is a problem that we used to have with g77; and a
similar problem exists with gfortran.

i have some idle curiosity as to how good other
compilers do with this code.  anyone on the list have
a few spare cycles to give this example a try with
some other compilers ?

gfortran takes a bit over 2 hours to compile this
example.


$ cat c.f
integer size / 250000 /
print*,' BLOCK DATA'
print*,' REAL R(',SIZE,')'
print*,' COMMON /ONE/ R'
print*,' DATA R / 0.500'

DO I = 1,SIZE-1
print*,' 1 ,',RAND() * 10000
ENDDO

print*,' 1/'
print*,' END'
end
$ gfortran c.f
$ ./a.out >d.f
$ time gfortran -c d.f 

i plan on looking at this in gfortran, unless it is
too hard (or has recursice routines !!)


--bud


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]