Subject: | |
From: | |
Reply To: | Dr. Ferenc Nagy |
Date: | Thu, 27 Nov 1997 08:38:18 +0100 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Gentle list members,
I have frequently met with stack overflows in PASCAL/V.
Can I have a preliminary guess at compilation about the needed stack,
from the table of variables when one procedure calls another.
I have learned that I have pass long records and arrays as VAR, even if
they must not change in the called program.
On the other hand, the PASCAL/V compiler does like large procedures:
itself aborts with stack overflow. I have segmented my programs frequently
not according my original intention but when the compiler forced me.
Have you any advices, rules of thumb, how can I avoid stack overflows?
I wish I have read HP-3000L in 1990, when I met these problems for the
first time.
Last time I got a false run-time alarm: INTEGER OVERFLOW instead of STACK
OVERFLOW.
TIA
Frank
|\ /~ ~~|~~~ Family : NAGY; first name : FERENC; title : Ph. D.
| \ | | Institute of Isotopes of the Hungarian Academy of Sciences
| \ | -+- H-1121 BUDAPEST Konkoly-Thege M. ut 29, (1525 Bp. POB 77)
| \ | | [log in to unmask] (36-1)-395-9123 Fax: ~395-9002
| \| | http://alpha0.iki.kfki.hu/~nagyf/
`-' ' `-' Home: H-1102 BUDAPEST Holgy u. 8. I. 8. (36-1)-262-1198.
The lazy man gets tired twice, the miser pays doubly.
|
|
|