From 3bee2537bd1d333312407ecd6a0cb397891222fa Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Sun, 29 Sep 2024 02:08:52 +0200 Subject: [PATCH] better smosym desc --- main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 458a5e4..482508e 100644 --- a/main.c +++ b/main.c @@ -11,13 +11,15 @@ symptr nopsym(SLC_SYM_OP op, slc_tmp_charptr key, symptr ptr) { ret.worp = NULL; return ret; // TODO: Create a "peasantly" symbol table where we have: - // - length - // - previndex - // - nextindex + // - 32 length + // - 32 previndex + // - 32 nextindex // - char* name inline stored + // - padding (divisible by 4) // - // Then I can do a lookup basically via strstr - // and check validity by jumping back&forth a bit. + // Then I can do a lookup basically via strstr-like (but 4byte steps!) + // with first few characters zero-padded in the search term parameter + // and if you want check extra validity by jumping back&forth in it. } uint32_t nopstack(SLC_STACK_OP op, uint32_t param) {