Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!indri!polyslo!vlsi3b15!lehi3b15!lafcol!pilgrimk From: pilgrimk@lafcol.UUCP (Kenwyn A. Pilgrim) Newsgroups: comp.lang.pascal Subject: Determing the stack size Keywords: hit to continue... Message-ID: <1110@lafcol.UUCP> Date: 13 May 89 02:31:36 GMT Organization: Academic Computer Center, Lafayette College Lines: 26 I'm having a problem using the {$M x,x,x} directive. How do I determine how much space I should reserve for the stack? In the following code for example: function A(B: byte): byte; var C: byte; begin end; function D(E:byte): byte; var F: byte; begin end; begin writeln(D(A)) end. How much memory should be set up for the stack? I had a hunch that SizeOf(A+B+C+D+E+F) should be reserved, but I'm not too sure now that I'm getting stack overflow errors when implementing this theory. Any help would be appreciated. Please use e-mail. Thanks -Kenwyn