[comp.lang.pascal] {S+} compiler directive

pilgrimk@lafcol.UUCP (Kenwyn A. Pilgrim) (05/18/89)

# >A rule of thumb I seem to remember from my asm days is to add 256 bytes
# 
# I think it's fairly unsafe in a Turbo Pascal program that does any I/O to
# have less than 1K more than you can see you're using.  Most of the string

A related problem?:

 I compiled a program in the S+ state, using the maximum allowable stack size
65520 bytes and would still get run-time errors. Problem was that after the
display of the error message, the machine would hang and lock the keyboard
up, so a cold boot was necessary. (Both in the integrated environ and at the
DOS prompt)

When compiled in the S- state, using any stack size (1024, 8092 for ex.) the
SAME program runs fine, no hangups, no nothings! (I've been testing it for
over 2 weeks now)

So my question is, 

 Is there a bug in TP4 or is it just me? 
I really am scared to use the program myself for I fear a bug will 
jump out and eat me!

P.S. 
 I am using an exit procedure which restores interrupts and clear screens, but 
I don't suspect this is the problem. Also I have very few nested procedures,
and am calling other programs using the EXEC procedure. And yes, I am using
the {$M} directive.

Any help would be appreciated,
Thanks

-Kenwyn