Why are stack overflows still a problem?

前端 未结 11 1455
故里飘歌
故里飘歌 2020-12-25 10:22

This question is mystifying me for years and considering this site\'s name, this is the place to ask.

Why do we, programmers, still have this StackOverflow

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 11:07

    Why in every major language does the thread stack memory have to be statically allocated on thread creation?

    Stack size and allocation is not necessarily related to the language you are using. It is more a question of processor and architecture.

    Stack Segments are limited to 4GB on current Intel processors.

    This following link is a good read, that may give you some of the answers you seek.

    http://www.intel.com/Assets/PDF/manual/253665.pdf - Chapter 6.2

提交回复
热议问题