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

标签 c++ windows dev-c++

是否可以在 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/

相关文章:

c++ - 动态分配的 int 数组的共享指针触发了断点

c++ - 在具有特定均值的 2 个数字之间获取一组随机数。

C++ 对shared_ptrs vector 进行排序

c++ - 将指针传递给非静态成员函数

c++ - Netbeans C++ 项目上的 SFML 错误

c - 从文本文件输入

C++ 期望主表达式在 "int"之前

c - 将用 C 编写的现有 Windows GUI 应用程序移植到 Linux 有哪些选择?

java - Gradle如何添加原生依赖? [Libgdx]

c++ - Dev C++中的嵌入式SQL