From 4ff9e3b89fa1dca5d5981a22e5d41ac5f36ad11d Mon Sep 17 00:00:00 2001 From: zinc Date: Thu, 15 Oct 2026 02:34:57 +0330 Subject: genmap: default genome reservation 0x70000 words (the genome had 197 words left); the map constants in rt.zc and the README table move by 0x8000; gc.zc's reclaim bound is 900 (937 with the heap higher, 952 before) and the run-only section rewrites whatever its number --- src/runtime/rt.zc | 18 +++++++++--------- src/tools/genmap.c | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/runtime/rt.zc b/src/runtime/rt.zc index 968be87..099ca2e 100644 --- a/src/runtime/rt.zc +++ b/src/runtime/rt.zc @@ -37,20 +37,20 @@ unbounded; // across targets and image sizes. // @map-rt -const MW = 0x1DD000; +const MW = 0x1E5000; const CODE_END = 0x80000; -const HEAP_LO = 0x1DD000; -const HEAP_HI = 0x23D000; +const HEAP_LO = 0x1E5000; +const HEAP_HI = 0x245000; const HEAP_GROW = 0x1; const ZFP = 0x90000; const GORG = 0x114100; -const FBOT = 0x17C100; -const FTOP = 0x1BC100; -const RS0 = 0x1BC100; -const MARK0 = 0x1CC100; +const FBOT = 0x184100; +const FTOP = 0x1C4100; +const RS0 = 0x1C4100; +const MARK0 = 0x1D4100; const MARKN = 0x8000; -const DSLO = 0x1D4100; -const DSHI = 0x1DCFF0; +const DSLO = 0x1DC100; +const DSHI = 0x1E4FF0; const MAGIC = 0x2B7E1516; // @end-map diff --git a/src/tools/genmap.c b/src/tools/genmap.c index 6d8db55..519852b 100644 --- a/src/tools/genmap.c +++ b/src/tools/genmap.c @@ -242,7 +242,7 @@ static void preset_default(Spec *s) s->compiler = 1; s->heap_top = 1; s->code_end = 0x80000; s->types = 65536; s->heap = 0x60000; s->total = 0x8000000; - s->genome = 0x68000; s->frame = 0x40000; s->ret = 0x10000; s->mark = 0x8000; + s->genome = 0x70000; s->frame = 0x40000; s->ret = 0x10000; s->mark = 0x8000; s->data = 0x7FF0; tables_big(s); } -- cgit v1.2.3