why is stack memory size so limited?
问题 When you allocate memory on the heap, the only limit is free RAM (or virtual memory). It makes Gb of memory. So why is stack size so limited (around 1 Mb) ? What technical reason prevents you to create really big objects on the stack ? Update : My intent might not be clear, I do not want to allocate huge objects on the stack and I do not need a bigger stack. This question is just pure curiosity. 回答1: My intuition is the following. The stack is not as easy to manage as the heap. The stack need