How to increase the gcc executable stack size?

前端 未结 3 1806
你的背包
你的背包 2020-12-16 01:28

I have large Boost/Spirit metaprogram that is blowing gcc\'s stack when I try to compile it.

How can I increase gcc\'s stack size, so I can compile this program?

3条回答
  •  萌比男神i
    2020-12-16 01:52

    The stack size can be configured during linking. You should look at details regarding the linker scripts. That will only change the stack size for your single programme.

提交回复
热议问题