Is there any limit on stack memory?

前端 未结 6 2040
清酒与你
清酒与你 2020-12-16 20:06

I was going through one of the threads. A program crashed because it had declared an array of 10^6 locally inside a function.

Reason being given was memory allocatio

6条回答
  •  孤城傲影
    2020-12-16 20:48

    You don't mention which programming language, but in Delphi the compile options include maximum and minimum stack size, and I believe similar parameters will exist for all compiled languages.

    I've certainly had to increase the maximum myself occasionally.

提交回复
热议问题