I read your message about this g77 limit in the cygwin mail archives.
I just installed cygwin-1.5.13-1 today and ran into the 160-MByte
limit on memory for static variables under g77. I used
g77 -mno-cygwin maxarray.f -o maxarray
to compile
program maxarray
real*8 a(240000000)
do i=1,240000000
a(i) = i
end do
print *, a(240000000)
stop
end
The resulting executable ran to completion. Without -mno-cygwin,
the executable returned immediately, with no output or error
message. Using -Wl,--stack,8388608 did not help, and actually
reduced the memory limit. Setting the registry entry
heap_chunk_in_mb to 1024 did not help either, and with that entry
still in effect, my array storage has exceeded that limit.
I'm running cygwin under Windows 2000 SP4 + latest hotfixes.
If this solution works for you, you may want to post it at
cygwin.com or on comp.lang.fortran.
- Jim McDonald
Naval Research Lab, Code 6841
(202) 404-6936, fax 767-1280
James.A.McDonald at nrl.dot navy mil