[comp.sys.sun] Problem with sparc Fortran

monger@maccs.dcss.mcmaster.ca (Patricia Monger) (11/04/90)

I have a fortran program that compiles on a Sun 3/160 running Fortran 1.3,
but not on any Sparc machines that I have tried (SS1 SunOS 4.0.3 Fortran
1.2, SS1+ and Sparcserver 490, SunOS 4.1 Fortran 1.3).

The error message I get on the Sparc machines is
zzsiml.f, line 9247: stack overflow: too many temporary variables

It is true that this is a ginormous program, which includes a subroutine
call in which no less than 1400 subroutine arguments are passed (machine-
generated code, of course).  Nonetheless, it does compile and run on the
3/160.  I have created a test file in which the fortran code consists only
of that subroutine call, and it dies with the same message, so it seems
that this is the problem.

I tried increasing the stacksize limit, but this did not help.  Besides,
it was already 4 times bigger than the one on the 3/160 when the error
occurred.

Can someone tell me to what stack the error message is referring, and
whether or not there is anything i can do about this?

Thanks, Patricia Monger
        McMaster University
        Hamilton, Ont.