Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* f77 array size limitation
@ 1991-08-08  2:22 Charlie Li
  1991-08-11  2:37 ` Rick Murphy
  1991-08-13 23:06 ` Phil Farrell
  0 siblings, 2 replies; 3+ messages in thread
From: Charlie Li @ 1991-08-08  2:22 UTC (permalink / raw)


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.  I have the following
configuration file, I am not sure what to add or modify to make large array
work.

ident		"GAUSS"
machine		mips
cpu		"DS5000"
maxusers	32
processors	1
maxuprc		50
physmem		16
timezone	5 dst 1
maxdsiz		64
smmax		1024

makeoptions	ENDIAN="-EL"

config		vmunix	root on rz0a  swap on rz0b    dumps on rz0b  

The same Fortran program runs fine on a VAX 6320 running VMS 5.4-1.

(2) I also tried to convert a pascal program to c using ptoc (come with Ultrix
software distribution as unsupported subset).  The pascal program compiles
and runs OK on a VAX, but the ptoc gives "segament fault (core dumped)"
too.  The source code actually is not long at all, just 120 lines.

(3)  I installed dvitovdu for tex/latex, but it seems always ask some more
*pxl fonts.  How I can get them all?  Convert all *pk to *pxl?
I cannot get xdvi compiled, due to incomplete X11-library from DEC.  Any
compiled version exist?  GNUPlot's X11 make also fails due to the same
reason.   Any ideas?

Please let me know if you have solution to my problems.

Thank you very much in advance!

Charlie Li


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: f77 array size limitation
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Rick Murphy @ 1991-08-11  2:37 UTC (permalink / raw)


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.

You might think about upgrading to the current products (ULTRIX V4.2 and
DEC FORTRAN V3.0.). However...

|>(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.

Compile your program with '-static' or use 'limit stacksize unlimited'.
The default for FfR is dynamic, stack-based local storage. If you can't fit
your locals on the stack, it'll seg fault. I know, it's a pretty stupid
way to tell you you've exceeded your stack limit.

|>(2) I also tried to convert a pascal program to c using ptoc (come with Ultrix
|>software distribution as unsupported subset).  The pascal program compiles
|>and runs OK on a VAX, but the ptoc gives "segament fault (core dumped)"
|>too.  The source code actually is not long at all, just 120 lines.

No idea here.

|>(3)  I installed dvitovdu for tex/latex, but it seems always ask some more
|>*pxl fonts.  How I can get them all?  Convert all *pk to *pxl?
|>I cannot get xdvi compiled, due to incomplete X11-library from DEC.  Any
|>compiled version exist?  GNUPlot's X11 make also fails due to the same
|>reason.   Any ideas?

Install ULTRIX V4.2. You'll get (in a separate directory tree) unmolested
X11R4 header files and libraries. That'll help with xdvi and GNUplot, most
likely.
	-Rick
--
Rick Murphy, WA1SPT/4			Washington ULTRIX Resource Center
Domain:  murphy@dco.dec.com -or- murphy@ufp.enet.dec.com
Bang:    decwrl!ufp.enet!murphy
Ding:	 (301) 306-2985
Disclaimer: This nonsense came from an AI program written in TECO. Ignore it.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: f77 array size limitation
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Phil Farrell @ 1991-08-13 23:06 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1991-08-13 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox