[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: P-Source: A Guide to the Apple Pascal System



In article <e32c8459-af7c-49e0-81d7-f267535113fa@i29g2000prf.googlegroups.com>,
winston19842005@yahoo.com <winston19842005@yahoo.com> wrote:
>
>Umm - you mean for Apple Pascal (and versions before UCSD IV.0) right?
>
>I'm pretty sure IV.0 and up had a real heap. You are probably talking
>MARK and RELEASE? IV.0 had new and dispose.

Earlier versions of UCSD actually had NEW as well, so the family of
dynamic memory allocation functions were  NEW, MARK and RELEASE.

Early versions of C took a similar approach - instead of malloc() and
free() it used brk() and sbrk().  The approach was the same: a
"stack-based heap" where you could free only the most recently
allocated memory blocks.

Turbo Pascal 1.0 had only new/mark/release, but version 2.0 added
a dispose function.

-- 
----------------------------------------------------------------
Paul Schlyter,  Grev Turegatan 40,  SE-114 38 Stockholm,  SWEDEN
e-mail:  pausch at stockholm dot bostream dot se
WWW:     http://stjarnhimlen.se/