codeblocks如何自己手动去扩大他的默认栈空间

codeblocks如何自己手动去扩大他的默认栈空间?
用到快排时栈溢出了,想通过改栈空间,vs里大概知道在哪,可是codeblocks没找到。

http://www.codeproject.com/Articles/418776/How-to-replace-recursive-functions-using-stack-and
首先你堆栈大小不够用的根本原因是你的算法有问题,也就是说你即使将堆栈空间改大,也十有八九解决不了你的问题;
其次上面的链接是将任何使用堆栈空间的递归算法改为等效的不占用堆栈空间的算法的办法。
另外


Windows:
/STACK (Stack Allocations)
Home | Overview | How Do I | Linker Options

The Stack Allocations (/STACK:reserve[,commit]) option sets the size of the stack in bytes.

To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click Output in the Category box. The Reserve text box (or in the reserve argument on the command line) specifies the total stack allocation in virtual memory. The default stack size is 1 MB. The linker rounds up the specified value to the nearest 4 bytes.

The optional value specified in the Commit text box (or in the commit argument on the command line) is subject to interpretation by the operating system. In Windows NT, it specifies the amount of physical memory to allocate at a time. Committed virtual memory causes space to be reserved in the paging file. A higher commit value saves time when the application needs more stack space, but increases the memory requirements and possibly the startup time.
Specify the reserve and commit values in decimal or C-language notation.
Another way to set the size of the stack is with the STACKSIZE statement in a module-definition (.DEF) file. STACKSIZE overrides the Stack Allocations (/STACK) option if both are specified. You can change the stack after the .EXE file is built by using the EDITBIN tool.


Linux:
ld --help | grep 'stack'
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stack-size=SIZE Set size of stack segment
--stack Set size of the initial stack
--stack Set size of the initial stack