HP3000-L Archives

November 1997, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Dr. Ferenc Nagy" <[log in to unmask]>
Reply To:
Dr. Ferenc Nagy
Date:
Thu, 27 Nov 1997 08:38:18 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (31 lines)
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.

ATOM RSS1 RSS2