Skip to content

Combine Instruction Table Memory Arena #47

@aaurandt

Description

@aaurandt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions