DevC++ (Mingw) Stack Limit

ⅰ亾dé卋堺 提交于 2020-01-03 02:42:07

问题


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


回答1:


Try giving this option to ld (the linker):

--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



来源:https://stackoverflow.com/questions/894666/devc-mingw-stack-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!