在占用内存空间较大的局部数组声明的前面加static将其从堆栈数据段挪到全局数据段即可避开因局部数组大小超过默认堆栈大小1MB造成程序不能正常运行的问题。
STACKSIZE
Home | Overview | FAQ | Details
Syntax
STACKSIZE reserve[,commit]
This statement sets the size of the stack in bytes. An equivalent way to set the stack is with the Stack Allocations (/STACK) option. See the documentation on that option for details about the reserve and commit arguments.