Re: Stack Overflow Detection
- From: Rich Webb <bbew.ar@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 14:55:38 -0400
On Fri, 30 May 2008 11:32:43 -0700 (PDT), Tomás Ó hÉilidhe
<toe@xxxxxxxxxxx> wrote:
On May 30, 4:37 pm, Vladimir Vassilevsky <antispam_bo...@xxxxxxxxxxx>
wrote:
The main problem with it is that you
never know for sure what is the maximum stack usage.
Are you sure about that? Would it not just be a case of determining
how much stack space each of the function's use, and then looking at
the logic of the program to see what could possibly be the deepest
level?
Vendor-supplied library functions could be an issue, and library
functions that call other library functions, etc. How many auto
variables do the deeper internal functions use? Are the call stack and
the "software" stack combined? Sometimes yes, sometimes not.
One hopes that the vendor recommends a minimum stack depth, but ...
--
Rich Webb Norfolk, VA
.
- References:
- Stack Overflow Detection
- From: Richard Phillips
- Re: Stack Overflow Detection
- From: Vladimir Vassilevsky
- Re: Stack Overflow Detection
- From: Tomás Ó hÉilidhe
- Stack Overflow Detection
- Prev by Date: Re: Stack Overflow Detection
- Next by Date: Re: Driving tri-state LED matrix
- Previous by thread: Re: Stack Overflow Detection
- Next by thread: Re: Stack Overflow Detection
- Index(es):
Relevant Pages
|