VM Core

Implemented inside path ./src/vm_core/, the C0 Virtual Machine is the core of this project. However, since the C0 byte code contains pointer arithmetic, we can't emulate the C0 struct using TypeScript object.

Specifically, we need to use ArrayBuffer in JavaScript to emulate the heap memory (allocated memory) in C0. This makes the C0VM.ts very different from original C0VM in C0 Language.

This documentation will provide detailed explanation of the design of C0VM.ts.

Last updated