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
  • I'm not looking for a tool, I'm in no position to install any software (there is only Eclipse available) at my current workstation. Further I have no code yet, because I work on the design for now.

    However its ok for me if my question can't be answered by a "yes it works" "no it doesn't work" with the information given above, I was just hoping for some simple answer.

Related