Skip to content

Conversation

@feds01
Copy link
Contributor

@feds01 feds01 commented Dec 12, 2025

  • ir: add Body::stats and Body::size helpers
  • Define clearer bytecode module structure
  • Define builder module for Hash VM
  • vm: add BytecodeBuilder initial utilities
  • Fix Interpreter::run loop
  • vm: support label resolution in interpretor
  • vm: implement write{8,16,32,64} instructions
  • vm: use inst! in vm tests

This adds the ability to get the stats and size of the body.
- `registers`: represents the registers and utilities of registers.
- `instruction`: represents the instructions and utilities of
  instructions.
- `op`: represents the operations and utilities of operations.
- `instruction`: utilities and macros for building instructions.
We we're never incrementing the instruction pointer, so the loop was
infinite if the length of the program was beyond 2 instructions long.
@feds01 feds01 self-assigned this Dec 12, 2025
@feds01 feds01 marked this pull request as ready for review December 12, 2025 23:55
@feds01 feds01 added the vm label Dec 12, 2025
@feds01 feds01 merged commit ae97721 into main Dec 13, 2025
1 check failed
@feds01 feds01 deleted the vm/bytecode/show branch December 13, 2025 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants