From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,651e3e98c7f5f278 X-Google-Attributes: gid1164f8,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: Compiler options to limit swap space Date: 1999/05/20 Message-ID: <7i1c41$cjk@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 480170216 References: <7hrtkj$a9c$1@nnrp1.deja.com> <7hs2u0$7qs@ds2.acs.ucalgary.ca> <7i13s4$tuj$1@nnrp1.deja.com> Organization: The University of Calgary Newsgroups: comp.sys.dec 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/