找回密码
 注册
查看: 1213|回复: 0

[求助]how to increase the stack size?

[复制链接]
发表于 2004-3-10 17:41:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
编译FORTRAN时出现STACK OVERFLOW问题,如何增加STACK SIZE?
在帮助文件中查到如下内容:
VF allocates array temporaries and automatic arrays on
             the stack at run-time. The default size of the Win32
             stack is not very large so you may need to increase the
             stack size.
             It is possible to increase the stack size either when
             you link the executable, or by using EDITBIN on the
             executable later.
             On the LINK command line, you can use the /stack
             qualifier, as:
                 link /stack:4000000
             Or, as part of the DF or F90 command:
                 df foo.f /link /stack:4000000
             You also have the option to modify the stack size in the
             executable itself using EDITBIN, such as:
                 editbin /stack:4000000 foo.exe
             By default, the stack size is 0x100000, or (1,048,576
             decimal).
具体如何操作?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表