From: Richard Henderson <rth@dot.cygnus.com>
To: axp-list@redhat.com
Subject: Re: malloc oddity?
Date: Mon, 29 Jun 1998 15:20:27 -0700 [thread overview]
Message-ID: <19980629152027.D1709@dot.cygnus.com> (raw)
In-Reply-To: <Pine.LNX.3.95.980629172833.13914A-100000@anubis.gsfc.nasa.gov>; from Mike Tripicco on Mon, Jun 29, 1998 at 05:39:48PM -0400
On Mon, Jun 29, 1998 at 05:39:48PM -0400, Mike Tripicco wrote:
> The problem relates to some legacy Fortran code I've inherited which
> allows Fortran to do dynamic memory allocation. The trick involves Fortran
> handling the offset between the location of a common block set by the
> Fortran code and the location of the malloc'd memory. That offset is used
> by Fortran and thus must fit in a 4-byte integer. In this case that's
> impossible.
Ah hah. You can disable this ordinarily quite useful feature
of malloc by calling
mallopt(M_MMAP_MAX, 0);
in your startup code. See <malloc.h>.
> However, it looks to me like if the GNU linker had an option equivalent to
> Digital's "-taso" I'd be able to avoid the problem:
Yes, well, no one has had the incentive to work on that. It
would probably take about 2 months of work.
r~
next prev parent reply other threads:[~1998-06-29 22:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-29 19:32 malloc oddity? Mike Tripicco
1998-06-29 20:10 ` Jim Paradis
1998-06-29 21:39 ` Mike Tripicco
1998-06-29 22:20 ` Richard Henderson [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-06-30 21:23 Larry Zimmerman
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