Date : Sun, 01 May 1988 21:41:02 GMT
From : tetra!budden@nosc.mil (Rex A. Buddenberg)
Subject: Determining TPA Requirements of Programs
Checking before you run a program to see if there is enough
TPA may not be enough by itself. Consider a program that
allocates itself both stack and heap space. Typically, the
stack space is static and resides right above the code itself.
Heap usually starts just below all the CPM stuff in high memory
and works down. And heap is usually data driven -- you can't
know how much data there will be at program design time.
Early Pascal compilers for CPM were great fun to watch when
you could cause a heap/stack collision (i.e. run out of TPA) which
would send everything off into the weeds -- correctable only by
a cold boot.
Rex Buddenberg