Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: farrell@pangea.Stanford.EDU (Phil Farrell)
Subject: Re: f77 array size limitation
Date: 13 Aug 91 23:06:13 GMT	[thread overview]
Message-ID: <1991Aug13.230613.28997@morrow.stanford.edu> (raw)
In-Reply-To: 1991Aug8.022217.1663@shark.uucp

In article <1991Aug8.022217.1663@shark.uucp> qiangli@GAUSS.CASR.FAU.EDU (Charlie Li) writes:
>Our DECstation 5000/200CX is running Ultrix 4.1 and Fortran for RISC.
>
>(1)  When I compile a Fortran program with a large array A(2*N,N), say N=400,
>the compiled program give segament fault (core dumped).  The program runs
>OK for smaller N.    I checked the compiler document, it seems the limit on
>array size only lay on the system configuration.

The RISC for Fortran compiler dynamically allocates all uninitialized
arrays at execution time.  It uses the stack space to do this.  If your
stack space is too small, the program will fail.  As I recall, the
default stacksize allocated by the C-shell (the parameter controlling per
process stack space) is quite small, although the system maximum can be
quite large (controlled in the config file by maxssiz - default 32
Megabytes).  You can see your current stacksize limit (in Kilobytes)
with the C-shell command
	limit
and modify it with
	limit stacksize xxxx
which you should probably put into your .cshrc file.

-Phil Farrell, Computer Systems Manager
Stanford University School of Earth Sciences
farrell@pangea.stanford.edu


      parent reply	other threads:[~1991-08-13 23:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-08-08  2:22 f77 array size limitation Charlie Li
1991-08-11  2:37 ` Rick Murphy
1991-08-13 23:06 ` Phil Farrell [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox