commit 5e08cdf7556541c012c8ff18571f9bbad60b69c2
parent dc6191087efce80273772703215890a2fcf6193e
Author: Ryan Sepassi <rsepassi@gmail.com>
Date: Mon, 27 Apr 2026 09:02:14 -0700
m1pp: increase text cap
Diffstat:
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/M1pp/M1pp.P1 b/M1pp/M1pp.P1
@@ -29,7 +29,7 @@
DEFINE M1PP_INPUT_CAP 0000040000000000
DEFINE M1PP_OUTPUT_CAP 0000040000000000
-DEFINE M1PP_TEXT_CAP 00000a0000000000
+DEFINE M1PP_TEXT_CAP 0000100000000000
## source_tokens cap: 2 MB / 32-byte tokens = 65536 tokens.
DEFINE M1PP_TOKENS_END 0000200000000000
## Macro record is 296 bytes: name (16) + param_count (8) + params[16]*16 (256)
@@ -135,17 +135,17 @@ DEFINE OFF_arg_ends 0006000000000000
DEFINE OFF_input_buf 8006000000000000
DEFINE OFF_output_buf 8006080000000000
DEFINE OFF_text_buf 80060c0000000000
-DEFINE OFF_source_tokens 8006160000000000
-DEFINE OFF_macros 8006360000000000
-DEFINE OFF_macro_body_tokens 80463f0000000000
-DEFINE OFF_streams 80465f0000000000
-DEFINE OFF_expand_pool 00495f0000000000
-DEFINE OFF_expr_frames 00497f0000000000
+DEFINE OFF_source_tokens 80061c0000000000
+DEFINE OFF_macros 80063c0000000000
+DEFINE OFF_macro_body_tokens 8046450000000000
+DEFINE OFF_streams 8046650000000000
+DEFINE OFF_expand_pool 0049650000000000
+DEFINE OFF_expr_frames 0049850000000000
## local_lookup_scratch — 256-byte working buffer used by
## expand_local_into_pool to assemble "<frame>_FRAME.<field>" before
## the macro-table linear search. Placed past expr_frames (BSS end) so
## adding it does not shift any existing OFF_*.
-DEFINE OFF_local_lookup_scratch 00527f0000000000
+DEFINE OFF_local_lookup_scratch 0052850000000000
## --- Runtime shell: argv, read input, call pipeline, write output, exit ------
@@ -7021,7 +7021,7 @@ ZERO8 ZERO8 ZERO8 ZERO8
## output_buf: 8 KB (M1PP_OUTPUT_CAP)
-## text_buf: 4 KB (M1PP_TEXT_CAP)
+## text_buf: 1 MB (M1PP_TEXT_CAP)
## source_tokens (M1PP_TOKENS_END)
diff --git a/M1pp/M1pp.c b/M1pp/M1pp.c
@@ -83,7 +83,7 @@
#define MAX_INPUT 262144
#define MAX_OUTPUT 524288
-#define MAX_TEXT 524288
+#define MAX_TEXT 1048576
#define MAX_TOKENS 65536
#define MAX_MACROS 1024
#define MAX_PARAMS 16