Transpiled VM compiles with real native preamble

bootstrap_vm.py preamble now has real implementations for all 48
native OCaml functions: stack ops, frame access, upvalue capture,
closure creation, JIT dispatch, CEK fallback, env walking.

The transpiled sx_vm_ref.ml (25KB) compiles cleanly alongside
sx_vm.ml. 7 logic functions transpiled from vm.sx:
  vm-call, vm-resolve-ho-form, vm-call-external,
  vm-run, vm-step, vm-call-closure, vm-execute-module

Next: wire callers to use Sx_vm_ref instead of Sx_vm.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 13:23:27 +00:00
parent cd61c049e3
commit 54ee673050
3 changed files with 1141 additions and 203 deletions

File diff suppressed because one or more lines are too long