gpt4 book ai didi

c++ - 开发 C++ (Mingw) 堆栈限制

转载 作者:行者123 更新时间:2023-11-30 04:40:41 24 4
gpt4 key购买 nike

是否可以在 DevC++ 中设置堆栈限制?与 linux 上的“ulimit -s”基本相同。

最佳答案

尝试将此选项提供给 ld(链接器):

--stack reserve
--stack reserve,commit
Specify the number of bytes of memory to reserve (and optionally commit) to be used as stack for this program. The default is 2Mb reserved, 4K committed. [This option is specific to the i386 PE targeted port of the linker]

http://sourceware.org/binutils/docs/ld/Options.html#Options

关于c++ - 开发 C++ (Mingw) 堆栈限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/894666/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com