-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Currently, both the Rust and C versions keep the BZ and TL instructions in completely separate tables.
Is there a way to further optimize in C to have one memory region that can shift based on the instructions loaded? (This would probably be unsafe behavior for Rust.)
Use-case/motivation:
One can no longer flex memory between engines from spec to spec without recompiling for a different arena. Hypothetically (or not so much) if you have a memory-limited system that had two modes each with a spec file, one that was almost all BZ instructions and the other that was almost all TL instructions, and each took up over half the arena, you could load one in, then reset and load the other. With the current implementation, you wouldn't be able to load either and one pot of your reserved memory is basically unused at a time.