Giter Site home page Giter Site logo

zisequkuai / revive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xermicus/revive

0.0 0.0 0.0 876 KB

Solidity compiler for PolkaVM

License: Apache License 2.0

Shell 0.20% JavaScript 0.01% C++ 0.07% C 1.07% Rust 94.64% TypeScript 0.83% Makefile 0.17% LLVM 0.88% Solidity 1.93% Yul 0.21%

revive's Introduction

CI

revive

YUL and EVM assembly recompiler to LLVM, targetting RISC-V on PolkaVM.

Frontend and code generator are based of ZKSync zksolc.

Status

This is experimental software in active development and not ready just yet for production usage.

Discussion around the development is hosted on the Polkadot Forum.

Installation

TL;DR installing the resolc Solidity frontend executable:

bash build-llvm.sh
export PATH=${PWD}/llvm18.0/bin:$PATH
make install-bin
resolc --version

LLVM

revive requires a build of LLVM 18.1.4 or later including compiler-rt. Use the provided build-llvm.sh build script to compile a compatible LLVM build locally in $PWD/llvm18.0 (don't forget to add that to $PATH afterwards).

Development

Please consult the Makefile targets to learn how to run tests and benchmarks. Ensure that your branch passes make test locally when submitting a pull request.

Design overview

revive uses solc, the Ethereum Solidity compiler, as the Solidity frontend to process smart contracts written in Solidity. The YUL IR code (or legacy EVM assembly as a fallback for older solc versions) emitted by solc is then translated to LLVM IR, targetting a runtime similar to Polkadots contracts pallet.

revive's People

Contributors

xermicus avatar 0xf333 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.