使用XCode增加堆栈大小 [英] Increase stack size with XCode
本文介绍了使用XCode增加堆栈大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Linux上开发了一个命令行应用程序,需要增加它的堆栈。在Linux上,我只是在运行程序之前使用了解决方法: ulimit -s unlimited
。在Mac OS X上,使用G ++命令行,我添加到编译选项中:
I developed a command line application on Linux which needs its stack to be increased. On Linux I just used the workaround: ulimit -s unlimited
before running the program. On Mac OS X, command line with G++, I add to the compilation options:
-Wl,-stack_size,0x10000000
并且它可行。
现在我正在开发这个程序带有XCODE,我应该在哪里添加这个选项?
Now I am developing this program with XCODE, where should I add this option?
推荐答案
在项目窗口中:
目标> [您的目标]>信息>构建>其他链接标记> [your flags]
Targets > [Your target] > info > Build > Other Linker Flags > [your flags]
这篇关于使用XCode增加堆栈大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文