This repository has been archived on 2025-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Aryadev Chavali 0f0a1c7699 Allow hex literals for numbers
As strto(ul|ll) allow the parsing of hex literals of the form `0x`, we
allow lexing of hex literals which start with `x`.

They're lexed into C hex literals which work for strtol.
2023-10-31 22:27:53 +00:00
2023-10-31 22:27:53 +00:00
2023-10-31 21:14:14 +00:00
2023-10-31 21:42:29 +00:00
2023-10-15 01:25:24 +01:00
2023-10-15 01:25:24 +01:00
2023-10-31 21:14:14 +00:00

Oreo's Virtual Machine (OVM)

A stack based virtual machine in C11. Deals primarily in bytes, doesn't make assertions about typing and is very simple to target.

Instructions to target

You need to link with the object files for base.c, darr.c and inst.c to be able to properly target the OVM. The basic idea is to create instructions via inst_t then using the inst(s)_write_* API to generate bytecode (and write to a file).

Then to execute the program, the virtual machine interpreter ovm.out is used.

For clarity, one may build lib (make lib) then use the resulting object files to link and create bytecode for the virtual machine.

Description
No description provided
Readme 401 KiB
Languages
C++ 93.8%
Makefile 6.2%