bbc-basic: Slight tweak to heap size.
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 30 May 2019 21:31:12 +0000 (22:31 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 30 May 2019 21:31:12 +0000 (22:31 +0100)
Making the mal heap very slightly smaller allows the self-hosting test
to complete on a 64-bit host.

This is really not the right approach, though.  I should really just
give in and specify "-size 1024k" to Brandy, or have the GC somehow
detect that we're wasting a lot of memory on strings and it should run
early.  At the moment, there's a tiny range of heap sizes that
actually work.

bbc-basic/types

index 3f1c98f..b1f3413 100644 (file)
@@ -57,7 +57,7 @@ DEF PROCtypes_init
   REM  8 bytes in Brandy on a 32-bit system, 16 bytes in Brandy on
   REM  a 64-bit system.
 
-  DIM Z%((HIMEM-LOMEM)/100,3), Z$((HIMEM-LOMEM)/100)
+  DIM Z%((HIMEM-LOMEM)/110,3), Z$((HIMEM-LOMEM)/110)
   DIM sS%((HIMEM-LOMEM)/64)
 
   Z%(1,0) = &04 : REM false