Newsgroups: comp.lang.pascal
Path: utzoo!utgpu!watserv1!maytag!watstat.waterloo.edu!dmurdoch
From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch)
Subject: Re: TP 6.0: Where do variables defined in units go?
Message-ID: <1991Feb16.021402.10141@maytag.waterloo.edu>
Sender: daemon@maytag.waterloo.edu (Admin)
Organization: University of Waterloo
References: <12226@ur-cc.UUCP>
Date: Sat, 16 Feb 1991 02:14:02 GMT
Lines: 23

In article <12226@ur-cc.UUCP> elmo@troi.cc.rochester.edu (Eric Cabot) writes:
>Hi pascal.netters.
>
>  From the memory maps in the manuals it looks like the
>variables defined in units (both private and public) go
>into the code seqment(s) rather than the data segment.

No, not since version 3.  All global data and local static data (i.e. typed 
constants) are put into the same single data segment, with a limit of 64K.

>  On the other hand, overlaid units go into the overlay
>buffer. 
>
>   Am I correct in assuming that one can define
>megabytes worth of variables using overlain units  thereby
>surmounting that nasty old 640k barrier for data as well  as
>code?  

Unfortunately, the data in an overlaid unit isn't overlaid, so this won't work.

Duncan Murdoch
dmurdoch@watstat.waterloo.edu

