logoalt Hacker News

dzdtyesterday at 8:23 PM1 replyview on HN

For purely historical reasons the C/C++ stack is "small" with exactly how small being outside of programmer control. So you have to avoid using the stack even if it would be the better solution. Otherwise you risk your program crashing/failing with stack overflow errors.


Replies

csjhyesterday at 8:32 PM

What do you mean outside of programmer control? What's stopping you from setting the stack size in the linker flags?

show 1 reply