🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

g77, release memory used for local variables ?

#513
From: mKsataka nagaoka
Date: Fri, 13 Feb 1998 00:00
37 lines
1810 bytes

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)
        dimension i(m)      ! 20MB*4 = 80MB
        call test1
        stop
        end 
        subroutine test1
        integer m,k
        parameter(m=20000000)
        dimension k(m)      ! 20MB*4 = 80MB 
        return
        end 


I think this problem is one of basic problems and I must be
able to do it by refering g77 manual carefully. However, I tried g77 
compiler with several options, I have not found the way to overcome.
I would greatly appreciate you if you comment on this.

thanks.

Tamiki Komatsuzaki
Department of Chemistry, The univ. of Chicago
email: tamiki@cloister.uchicago.edu

this mail was sent through my friend's account.
Technical Details
Message-ID: <980213122956.M0305016@sakura.kudpc.kyoto-u.ac.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10684a,b22f12d0b3d158d4,start
X-Google-Attributes: gid10684a,public
X-Google-Thread: 1103af,b22f12d0b3d158d4,start
X-Google-Attributes: gid1103af,public
X-Google-Thread: f9b51,b22f12d0b3d158d4,start
X-Google-Attributes: gidf9b51,public
X-Google-Thread: 102983,b22f12d0b3d158d4,start
X-Google-Attributes: gid102983,public
From: c54213@sakura.kudpc.kyoto-u.ac.jp (mKsataka nagaoka)
Subject: g77,  release memory used for local variables ?
Date: 1998/02/13
Message-ID: <980213122956.M0305016@sakura.kudpc.kyoto-u.ac.jp>
X-Deja-AN: 324639061
Organization: Data Processing Center, Kyoto University, JAPAN
Newsgroups: comp.os.linux.misc,comp.os.linux.setup,fj.os.linux,aus.computers.linux