Date: Wed, 14 Jun 2000 13:44:28 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Johan Henriksson cc: DJGPP mailinglist Subject: Re: Stack vs recursive functions In-Reply-To: <006e01bfd5d8$69952ee0$0500007b@brk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 14 Jun 2000, Johan Henriksson wrote: > I wonder how many recursive levels I can have with a function > that takes about 6 ints as parameters > and have 2 ints as local variables? > The size of the function shouldn't matter, right? Oh, and if you > could give me the size of the stack so I might calculate it myself in the > future, that would me nice as well. You can use the library function `stackavail' to know how much stack space is free at any given time.