Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!ox-prg!oxuniv!speedy From: speedy@vax.oxford.ac.uk Newsgroups: comp.lang.pascal Subject: Re: SHRINK BEFORE RUNNING A CHILD PROCESS Message-ID: <1991Jun19.091052.749@vax.oxford.ac.uk> Date: 19 Jun 91 08:10:52 GMT References: <11940@j.cc.purdue.edu> Organization: Oxford University Computing Service Lines: 13 In article <11940@j.cc.purdue.edu>, zhou@brazil.psych.purdue.edu (Albert Q.Zhou) writes: > In Turbo Pascal, the dynamic memory to be used in a program has to be > specified during the compilation by $M. However, when you run a child > program with exec, you can not use any part of the memory already > allocated for the heap even if it is free. Is it a way to get around this? > There are a few routinesabout from a wide variety of sources that can swap out the whole heap to Disk or EMS along with much of the program-they are available for both C and Pascal. I have one such routine which a) I have never used and b) is quite old but it does have all the source code with it. If you are interested email me and I will send an XX-encoded version (Janet mucks up UUencoded files according to BITFTP)