🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #261

Re: Turbo Pascal memory

#261
From: Mike Copeland
Date: Tue, 06 Jul 1999 00:00
35 lines
2992 bytes
   I'm not sure why you're asking this question in this thread.  
Recursion is a capability which _all_ Pascal implementations support, and 
the amount/level of recursion which TP/BP (or others) will handle is a 
function of the Stack.  These subjects have little to do with use of Real 
Memory - except that TP/BP limits the total amount of Stack which can be 
used to 64K - while the topic has been dealing with dynamic memory 
allocation...on the Heap.  Different things, really, and the programmer's 
use of recursion isn't really affected by the uses of the Heap.
   Your question seems based on a rather fuzzy understanding of what 
Pascal does and how it's used, I'm afraid...

> those versions of pasal don't work woth recursion though do they?
> 
> >>    First, Turbo Pascal 7.0 has access only to Real Memory - the 640K
> >> in which programs execute.  You can allocate and use several pages of
> >> 64KB of Heap data, using pointers, and the total amount of Heap is
> >> dependent on several factors:
> >>   1. Whether or not you're executing your program in the TP IDE (not a
> >> good way to do it if you're using pointers or making Exec calls);
> >>   2. How much Real Memory is being allocated to the DOS process you're
> >> running.  I don't know how NT does it, but you need to maximize this
> >> value...and you should be working with 600K+ to have maximum resources
> >> available;
> >>   3. The value MemAvail returns when you call it as your program executes
> >> (affected by whatever's running when you execute your program);
> >>   4. The treatment of pointers which have been used and aren't needed any
> >> more - are you releasing them?
> >>    All told, you should be able to use at least 400K of Heap memory (in
> >> 64KB chunks), providing you deal correctly with the above issues.
> >>    You can also use Overlays, to make your program smaller and make even
> >> more Heap memory available...depending on the application, of course.
> >>    Most of all, _don't_ run your program in the IDE, because it consumes
> >> an enormous amount of Real Memory while it's in execution - it doesn't
> >> swap out when your compiled program executes.  Compile to Disk and
> >> execute it as a DOS application.
Technical Details
Message-ID: <MPG.11ebb02d897163dd989c46@news.primenet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <UKre3.16340$U4.829299@carnaval.risq.qc.ca> <MPG.11e4a23a4229c806989c43@news.primenet.com> <3780BAA0.E304087D@unsw.edu.au> <7lr9b2$1cc$1@gxsn.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,d7888456b702217d
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,d7888456b702217d
X-Google-Attributes: gid108ebd,public
From: mrcope@primenet.com (Mike Copeland)
Subject: Re: Turbo Pascal memory
Date: 1999/07/06
Message-ID: <MPG.11ebb02d897163dd989c46@news.primenet.com>
X-Deja-AN: 497742464
References: <UKre3.16340$U4.829299@carnaval.risq.qc.ca> <MPG.11e4a23a4229c806989c43@news.primenet.com> <3780BAA0.E304087D@unsw.edu.au> <7lr9b2$1cc$1@gxsn.com>
X-Complaints-To: abuse@globalcenter.net
Organization: Copeland Computer Services
X-Posted-By: @206.132.49.111 (mrcope)
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal