The system containts two parts:
- byte-code compiler, and
- run-time VM/ bytecode interpreter provides access to hardware (memory, I/O and a few generic drivers)
ByteCode compiler runs on host system (Linux/Windows), contains both
- byte-code assembler done as syntax parser implemented in
flex
/bison
,
- VM core is system-independent and able to run in emulated mode on host with
- host OS API wrappers bound to some VM commands provides access to host-specific I/O
Due to VM core included it has minimal FORTH compiling functions, implemented as VM commands: Compiler in VM