Stack size calc
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.