Make heap-allocated alternatives or replacements for MemoryDump
and MemoryShim
#164
Labels
➕ improvement
Chores and fixes: the small things.
MemoryDump
and MemoryShim
#164
what
lc3_isa::util::MemoryDump
andlc3_shims::memory::MemoryShim
contain full LC-3 memory images (128 KiB). Currently, they allocate this large amount of memory on the stack. This has led to the assembler and TUI increasing their stack sizes. Due to the memory overhead, we already avoid using these structs on non-hosted platforms, so we could change the structs to use heap-allocated memory, or add a heap-allocated alternative. We expect this would allow the assembler and TUI to return to using default stack sizes.steps
MemoryDump
alternative or replacementMemoryShim
alternative or replacementMemoryDump
andMemoryShim
(as necessary)where
branch:
imp-heap-memorydump
lc3_isa::util::MemoryDump
lc3_shims::memory::MemoryShim
relevant code:
lc3_isa::util::MemoryDump
lc3_shims::memory::MemoryShim
open questions
MemoryDump
entirely? Or just provide alternative?MemoryShim
entirely? Or just provide alternative?The text was updated successfully, but these errors were encountered: