CompuServe Messages

Stack size calc

#: 130732 S10/ProgrammingForum unknown
    20-Jun-88 18:49:04
Sb: #130537-Stack size calc
Fm: John Foust 72237,135
To: Allen Mitts 75216,1236

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Good question! What's the answer? Part of it would be determining the maximum level of function calling within the program, if each function declares a certain amount of stack space for local variables, then the stack can grow as the program executes. This is at least part of the problem, as you need to determine the operating system overhead in terms of the stack, too. I think it's a matter of guesswork, it's not something stuck in the executable, or easily analyzed from the source code.