This patch increases the STACKSIZE header value from 4096 to 65,536.
Inform 7 needs a big stack (but see also patch C63108). Apply the following patch.
About Patches
Issue C63103 [previous patch]
Increase STACKSIZE header value to 65536
Submitted by: Jesse McGrew
Appeared in: Compiler 6.31 or before
Fixed in: -
Problem
Solution
*** files.c~ Fri Jul 14 00:04:37 2006
--- files.c Fri Jul 14 00:04:37 2006
***************
*** 521,532 ****
sf_put((Out_Size >> 16));
sf_put((Out_Size >> 8));
sf_put((Out_Size));
! /* STACKSIZE, which we guess at 4096. That's about enough for 90
! nested function calls with 8 locals each -- the same capacity
! as the Z-Spec's suggestion for Z-machine stack size. */
sf_put(0x00);
sf_put(0x00);
- sf_put(0x10);
sf_put(0x00);
/* Initial function to call. Inform sets things up so that this
is the start of the executable-code area. */
--- 521,530 ----
sf_put((Out_Size >> 16));
sf_put((Out_Size >> 8));
sf_put((Out_Size));
! /* STACKSIZE, which we guess at 65,536 for Inform 7. */
sf_put(0x00);
+ sf_put(0x01);
sf_put(0x00);
sf_put(0x00);
/* Initial function to call. Inform sets things up so that this
is the start of the executable-code area. */
Last updated 17 April 2013.
This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation.
Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.