Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.17 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.17 KB

zevm

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.

Usage

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

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
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.