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 Children
Related