You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pocol is a minimalist, register-based Virtual Machine with a complete toolchain including assembler, high-level compiler, JIT compilation, and debugger.
Features
Complete Toolchain: From assembly to high-level language (PocolC)
Minimalist Design: Clean, simple architecture focused on essentials
Register-based: 8 general-purpose 64-bit registers for efficient computation
Stack Operations: 1024-slot stack for flexible data manipulation
Cross-platform: Builds and runs on Linux, macOS, and Windows
JIT Compilation: Compile bytecode directly to x86-64 machine code
Bytecode Optimizer: Constant folding, dead code elimination, peephole optimizations
Debugger: Step-by-step execution with breakpoints, watchpoints, and visualizer
System Calls: Virtual file system, file I/O, timers, process management
Zero Dependencies: Pure C implementation with no external libraries
# Test assemblercd posm && make
./posm example/3010.pcl -o /tmp/test.pob
# Test VMcd ../pm && make
./pm /tmp/test.pob
# Run with JIT
./pm /tmp/test.pob --jit
# Run debugger
./pm /tmp/test.pob --debug
# Run PocolC testscd ../poclc && make
./poclc tests/hello.pc -o tests/hello.pob