GithubHelp home page GithubHelp logo

liangqi1983 / evm_llvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from etclabscore/evm_llvm

0.0 0.0 0.0 550.53 MB

Official repo of the EVM LLVM project

License: Other

Shell 0.03% C++ 30.05% Python 0.34% Perl 0.01% C 0.29% PHP 0.01% Emacs Lisp 0.01% Objective-C 0.01% OCaml 0.10% Go 0.05% Assembly 18.93% Logos 0.01% CSS 0.01% Swift 0.01% HTML 0.01% CMake 0.19% LLVM 49.97% Batchfile 0.01% Dockerfile 0.01% Roff 0.01%

evm_llvm's Introduction

EVM LLVM Image

Working on smart contracts on EVM these days has a lot of limitations. The programming language, the performance, the cost, the analysis tools, are all limited due to the fact that the EVM platform is a very blockchain specific execution environment. It differs very much from our daily compilers. It is a stack machine; its resources are limited; it does not have a heap space; et cetera, et cetera. Because of those dicrepancies, the blockchain community had to rebuild smart contract infrastructures from scratch.

But to mature a software infrastructure takes a long time and tremendous efforts. With the fast-acting of blockchain upgrades, smart contract facilities are growing relatively slower than the rest of blockchain facilities. We would like to change that.

With this project, we prove that industry-strong, LLVM compiler frameworks are still compatible for the EVM platform, even though LLVM is not created specifically for such kind of architectures.

EVM LLVM is an EVM architecture backend for LLVM. With EVM LLVM you can generate EVM binary code with LLVM-based compilers. The project is a codegen backend, it does not assume language frontends, so developers should be able to plug in a new smart contract language frontend to generate EVM binary, as long as the frontend does not generate language/platform-specific instructions.

However, there are limitations introduced by the EVM architecture. As a software instruction set architecture, EVM opcodes aims at providing the best security measurements to the community, rather than performance. Because of this, we cannot assume programs running on nowadays x86 machines or cellphones can be ported easily to a blockchain which's execution environement is EVM.

At this moment, this project is based on LLVM 10. Some additional features have added to support EVM codegen.

References and materials

evm_llvm's People

Contributors

lattner avatar topperc avatar rksimon avatar espindola avatar rotateright avatar arsenm avatar isanbard avatar chandlerc avatar d0k avatar echristo avatar stoklund avatar resistor avatar ddunbar avatar dwblaikie avatar chapuni avatar mbrukman avatar cunningbaldrick avatar dexonsmith avatar lhames avatar rnk avatar nlewycky avatar asl avatar atrick avatar bob-wilson avatar majnemer avatar dsandersllvm avatar tnorthover avatar tstellaramd avatar ahatanak avatar matzeb 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.