Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii)
Subject: Re: Compiler options to limit swap space
Date: 1999/05/20	[thread overview]
Message-ID: <7i1c41$cjk@ds2.acs.ucalgary.ca> (raw)
In-Reply-To: 7i13s4$tuj$1@nnrp1.deja.com

dtmoore (sponk@my-dejanews.com) wrote:
: I was thinking that maybe this problem can be partially circumvented by
: dynamically linking some of the subroutines that contatin large, local
: static arrays.  That way the system won't see the entire memory image
: when the process starts ... of course, I suppose this could lead to
: run-time crashes if the loader can't grab the required swap space when
: it follows the dynamic link.  I would appreciate any comments or
: suggestions about this idea.  Thanks,

*IF* (and this a big if indeed) your application is written rigorously 
to the letter of the Fortran Standard, and does not expect arrays which 
are not SAVE'd to be initialized to any particlular value or survive 
after leaving the scope where they are defined, you may getg some relief 
by using the -automatic compiler option. This will place data local to
subroutines/functions onto stack, allowing the space to reused to some
extent. This will not work with the COMMON blocks, however.

You probably can get some relief by splitting your apllication into
several dynamic libraries and requesting delayed loading. However,
unless you are prepared to manage these libraries by hand (which
probably would be prohibitively messy unless you have a well-partitioned
application with a few well-defined interfaces between the partitions)
with explicit calls to dlopen/dlclose/dlsym you will not be able to
re-use memory for separate libraries.

Regards,

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



  reply	other threads:[~1999-05-20  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-18  4:00 Compiler options to limit swap space sponk
1999-05-18  4:00 ` Serguei Patchkovskii
1999-05-20  4:00   ` dtmoore
1999-05-20  4:00     ` Serguei Patchkovskii [this message]
1999-05-21  4:00     ` Jeffrey J. Potoff
1999-05-18  4:00 ` sponk
  -- strict thread matches above, loose matches on Subject: below --
1999-05-18  4:00 sponk
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