3 ms·
> Has this ever been proven to be a problem in practice, given that a program's stack is typically limited in size? Would the recommended workaround (if this wa
by pcwalton 10y ago
> Has this ever been proven to be a problem in practice, given that a program's stack is typically limited in size? Would the recommended workaround (if this was a problem) be to change variables to use heap instead?
It is occasionally a problem. For example, when writing my old emulator, I statically allocated the system's RAM (which has a fixed size) on the stack at first before thinking better of it and moving it to the heap. But such situations are uncommon.