Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue C63103     [previous patch]

Increase STACKSIZE header value to 65536
Submitted by: Jesse McGrew     Appeared in: Compiler 6.31 or before     Fixed in: -
Problem

This patch increases the STACKSIZE header value from 4096 to 65,536. Inform 7 needs a big stack (but see also patch C63108).

Solution

Apply the following patch.

*** 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 web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Roger Firth.