使用 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?
推荐答案
从项目窗口:
Targets > [Your target] > info > Build > Other Linker Flags > [your flags]
Targets > [Your target] > info > Build > Other Linker Flags > [your flags]
这篇关于使用 XCode 增加堆栈大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文