Skip to content

zen-eth/zevm

 
 

Repository files navigation

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.12.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.

Releases

No releases published

Packages

No packages published

Languages

  • Zig 100.0%