Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: Re: Fortran: Large static arrays = unal trap + core
Date: Wed, 10 Mar 1999 10:14:42 -0500 (EST)	[thread overview]
Message-ID: <199903101514.KAA17789@adder.cs.Virginia.EDU> (raw)
In-Reply-To: <Pine.LNX.4.05.9903100702020.24394-100000@gumby.dynatec.com> from "Matt Nelson" at Mar 10, 99 07:05:30 am

> >  >  - declare some dummy arrays:  real dummy1(60000000) (three of em)
> >  >  - save an I*8 pointer to the array:  pointer=%loc(dummy1(1))
> >  >  - pass the pointer to subroutines that do the meat of the work via
> >  >    %val(pointer)

You should print a debugging statement right after you declare those
arrays (i.e. at program start, if they are in the main program); that
will tell you if you ran out of memory and immediately dumped core.

Then you should print the I*8 value of pointer. You can see if it is
misaligned or not.

There may also be a weirdness in the way %val() interacts with
subroutine arguments on Alpha g77. Hm.

> could the memory get too fragmented to allow for declaration of such a
> large array?

I don't think Linux has this "feature".

-- g


  reply	other threads:[~1999-03-10 15:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-09 16:10 Fortran: Large static arrays = unal trap + core Matt Nelson
1999-03-10 11:53 ` Harvey J. Stein
1999-03-10 15:05   ` Matt Nelson
1999-03-10 15:14     ` Greg Lindahl [this message]
1999-03-10 15:44     ` Phillip Ezolt
1999-03-10 17:29     ` Wes Bauske
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