about summary refs log tree commit diff stats
path: root/run.py
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2023-11-27 14:08:55 +0100
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2023-11-27 14:08:55 +0100
commit836e42215fda0cbd330caef2dc5fc93336d4722c (patch)
tree0b9ce5cca67c511b74b9ae91a8fda2fc0a35e65c /run.py
parent5d51b4fe0bb41bc9e86c5775de35a9aef023fec5 (diff)
downloadfocaccia-836e42215fda0cbd330caef2dc5fc93336d4722c.tar.gz
focaccia-836e42215fda0cbd330caef2dc5fc93336d4722c.zip
Add memory storage capabilities to `ProgramState`
The `SparseMemory` class represents a program's memory. While the user
can read from and write to arbitrary memory addresses, it manages its
memory in pages/chunks internally. This is a tradeoff between space
consumption (this solution might have a memory overhead) and lookup
speed of individual memory addresses.

Add two small unit tests for `SparseMemory`.
Diffstat (limited to 'run.py')
0 files changed, 0 insertions, 0 deletions