🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #512

Re: g77, release memory used for local variables ?

#512
From: Rowan Hughes
Date: Sun, 15 Feb 1998 00:00
29 lines
1833 bytes
mKsataka nagaoka <c54213@sakura.kudpc.kyoto-u.ac.jp> wrote:

: I have been trying to release memory space used locally for every local 
: variable and array referenced in subroutines or functions except common
: blocks.

: namely, 
: suppose that we have a 100MB memory(say, real memory 32MB and swap 68MB)
: and want to run a following program for an example ;

:         program test
:         integer i,m
:         parameter(m=20000000)
...

Once a page is allocated to a pid/uid it cannot be released back
into the system until the job exits. It may be demalloced
but it is still owned by you until the job is done. With g77 
spaced is not allocated until a peek/poke is actually performed
on the address. That is, declaring a huge array will not consume
a huge amount of memory until you actally attempt to use values
from the array.

-- 
=======================================================
Dr Rowan Hughes                  hughesr@dnr.qld.gov.au
Qld Dept Natural Resources           x-csrdh@jcu.edu.au
CIS group, Indooroopilly. W:07-38969705   H:07-33798689
Technical Details
Message-ID: <6c5t96$kea2@inet6.citec.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <980213122956.M0305016@sakura.kudpc.kyoto-u.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1103af,b22f12d0b3d158d4
X-Google-Attributes: gid1103af,public
X-Google-Thread: f9b51,b22f12d0b3d158d4
X-Google-Attributes: gidf9b51,public
X-Google-Thread: 102983,b22f12d0b3d158d4
X-Google-Attributes: gid102983,public
X-Google-Thread: 10684a,b22f12d0b3d158d4
X-Google-Attributes: gid10684a,public
From: Rowan Hughes <hughesr@nrpc.dnr.qld.gov.au>
Subject: Re: g77,  release memory used for local variables ?
Date: 1998/02/15
Message-ID: <6c5t96$kea2@inet6.citec.com.au>
X-Deja-AN: 325196900
References: <980213122956.M0305016@sakura.kudpc.kyoto-u.ac.jp>
Organization: Who Knows
Newsgroups: comp.os.linux.misc,comp.os.linux.setup,fj.os.linux,aus.computers.linux