🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #699

Re: Problem with exec'ing a Turbo Pascal program

#699
From: chip
Date: Mon, 13 Apr 1992 01:18
15 lines
991 bytes
> An explanation of this behaviour would be appreciated.  Our
> experiments have indicated that when a Turbo Pascal program is
> exec'ed it gets given all of RAM even though there is a compiler
> directive that told it to only allocate a small heap :-(

The Turbo Pascal program needs to have a line added to the beginning of
the source code.

Add a line like:  {$M stack, minheap, maxheap}

Then recompile the code.  This will let you set the amount of memory that
Turbo Pascal will try to access.  If this switch is not set, it will try
to grab all available memory.

Hope this help.
Technical Details
Message-ID: <1992Apr12.221809.5003@ac.dal.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!nstn.ns.ca!ac.dal.ca!chip
References: <1992Apr9.213210.1501@massey.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!nstn.ns.ca!ac.dal.ca!chip
From: chip@ac.dal.ca
Newsgroups: comp.os.msdos.programmer
Subject: Re: Problem with exec'ing a Turbo Pascal program
Message-ID: <1992Apr12.221809.5003@ac.dal.ca>
Date: 13 Apr 92 01:18:09 GMT
References: <1992Apr9.213210.1501@massey.ac.nz>
Organization: Dalhousie University, Halifax, Nova Scotia, Canada
Lines: 15