This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Will the call-stack size be an issue?

Hey all

I've some basic question about the Call-Stack.

In my application I have a series of functions which call other functions and so on until an depht of about 20 calls.

Now I was wondering if this might cause any problem with the available call-stack size, will the programm eventually run out of memory (Stackoverflow)?

What factors affect the usage of call-stack?

How can I estimate the safe depth of function calls?

The functions I've been talking about:

  • have approximately 32 Bytes of parameter variables
  • use approximately 64 Bytes of function local variables
  • have no return values

I'm new to this topic, so if the information given above does not make any sense or is irrelevant, I'd appreciate any hints.

Parents Reply
  • Thanks for the link.

    However I'm stil looking for some estimation if my application has a chance of running or if I have to make a fundamental rework of my design before implementation.

    Could you make any estimations if I'm way off with a call depth of 20. Im just looking for some order of magnitute, no specific values. Or do I have to implement this first, and then use the tool you mentioned?

Children
Related