3 ms·
Yes, that is basically what I mean. If you are going to use a very large amount of stack space you should consider alternatively allocating something on the hea
by kevincox 5y ago
Yes, that is basically what I mean. If you are going to use a very large amount of stack space you should consider alternatively allocating something on the heap and freeing it afterwards.
Yes, if most of your program is using roughly the same amout of stack space then it is great. However I think if you are worried about running out then you are likely using far more than the average part of your program.
So yes, it isn't intrinsically bad, but context important to evaluate the decision.