|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
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).
具体如何操作? |
|