Stack allocation limit for programs on a Linux 32 bit machine

后端 未结 3 1477
礼貌的吻别
礼貌的吻别 2021-01-16 11:45

In C++ how much can the stack segment grow before the compiler gives up and says that it cannot allocate more memory for stack.

Using gcc on a linux (fedora) 32 bit

3条回答
  •  孤城傲影
    2021-01-16 12:21

    On my 32 bit linux, its 8192K bytes. So it should be the same on your machine.

    $ uname -a
    Linux TomsterInc 2.6.28-14-generic #46-Ubuntu SMP Wed Jul 8 07:21:34 UTC 2009 i686 GNU/Linux
    $ ulimit -s
    8192
    

提交回复
热议问题