在编译时,可以用/STACK命令来设置栈的大小,VC中默认时2M,多了估计不太行
解决方案 »
- 问个::FindFirstFile()的小问题 第一次用 最初级的 在线等
- 从XML文件中取数据的一点问题
- 将基类和子类坐在一个DLL中导出
- C/S结构问题,谢谢
- 系统重装后并口打开问题?
- 如何让弹出对话框中的文本框中设置字符?
- 如何操作我的数据库表(
- 大家帮帮忙!!小弟有很急得问题,寻求答案,要多少分,我给多少。小弟实在是很急,希望高手们帮帮忙。帮帮忙呀,我先谢谢了!!帮帮忙呀
- CXX0033: Error: error in OMF type information
- 实现一个高速的固定长度(如: 16个字节)的__int128
- VC++与MapBasic开发图形界面,如何设定图形显示区域
- createprocess了一个控制台程序,现想用程序模拟键盘象那个新的CONSOLE里输入(屏幕上可看到)该如何做?
Home | Overview | How Do I | Linker OptionsThe 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.