DevC++ (Mingw) 堆栈限制 [英] DevC++ (Mingw) Stack Limit

查看:49
本文介绍了DevC++ (Mingw) 堆栈限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 DevC++ 中设置堆栈限制?基本上与 Linux 上的ulimit -s"相同.

Is it possible to set the stack limit in DevC++? Basically the same as "ulimit -s" would do on linux.

推荐答案

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

Try giving this option to ld (the linker):

--stack 保留
--stack 保留,提交
指定要保留(和可选地提交)用作此程序堆栈的内存字节数.默认为 2Mb 保留,4K 已提交.[此选项特定于链接器的 i386 PE 目标端口]

--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#选项

这篇关于DevC++ (Mingw) 堆栈限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆