Ethereum Virtual Machine implementation in Zig.
Inspired by REVM.
Important
This is just a simple proof of concept I did to learn Zig. Instructions, gas metering, host interface, revisions, etc. are either incomplete or not implemented at all. Maybe one day I will finish this.
Tested with Zig 0.13.0
.
- Run:
zig build run
- Test:
zig build test
- Emit LLVM-IR and ASM:
zig build -Doptimize=ReleaseFast -Dstrip -Demit
- Emit ASM without using LLVM (not fully implemented yet):
zig build -Doptimize=ReleaseFast -Dstrip -Demit -Dno-use-llvm
- View more options:
zig build --help
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.