Giter Club home page Giter Club logo

Comments (7)

chfast avatar chfast commented on September 16, 2024

EVMJIT="-help" ./testeth -- --vm jit

And use EVMJIT="-dump" to dump generated LLVM IR.

from evmjit.

ToolmanInside avatar ToolmanInside commented on September 16, 2024

Hi, sorry to bother.
I'm wonder is this the right way to use this tool?

~/evmjit/build/cpp-ethereum/build/test$ EVMJIT="-help" ./testeth --jit

I got some unexpected feedback

Running tests using path: "/home/user0/tests"
An unrecognized parameter in the argument jit

Usage: testeth [Boost.Test argument]... -- [custom test module argument]...

For detailed help on Boost.Test parameters use:
  testeth --help
or
  testeth --help=<parameter name>

The Readme file is a little difficult for me to understand. I'll be really appreciated if anyone can help.

Hi~May i ask you how did you build this project? on x86 or x64? use visual studio 2015 or 2017? how about your building system(Linux or Win)?
Sorry for so many questions, i have some problem when i build and i want to check my environment : ).

from evmjit.

ttiinn avatar ttiinn commented on September 16, 2024

Hi~May i ask you how did you build this project? on x86 or x64? use visual studio 2015 or 2017? how about your building system(Linux or Win)?
Sorry for so many questions, i have some problem when i build and i want to check my environment : ).

in linux.

EVMJIT is a submodule of testeth. You can build testeth with EVMJIT option on(open it in ../testeth/cmake/EthOptions.cmake)
Testeth build guide: https://github.com/ethereum/testeth

After build it successfully testeth is in the path: ../testeth/build/test

from evmjit.

ToolmanInside avatar ToolmanInside commented on September 16, 2024

Hi~May i ask you how did you build this project? on x86 or x64? use visual studio 2015 or 2017? how about your building system(Linux or Win)?
Sorry for so many questions, i have some problem when i build and i want to check my environment : ).

in linux.

EVMJIT is a submodule of testeth. You can build testeth with EVMJIT option on(open it in ../testeth/cmake/EthOptions.cmake)
Testeth build guide: https://github.com/ethereum/testeth

After build it successfully testeth is in the path: ../testeth/build/test

Thx , it helped a lot. I have built the whole testeth, and it works when i type
EVMJIT="-help" ./testeth -- --vm jit
But actually i want to compile my own solidity bytecode into LLVM bitcode. I have searched testeth docs but it is difficult for me. Is there any way can set the compile path to my code?

from evmjit.

chfast avatar chfast commented on September 16, 2024

I'm not sure what you want to do with that, but some important information.

  1. EVMJIT is not maintained any more, so you cannot build the latest Aleth with it.
  2. You could select evmjit in aleth-vm to execute any EVM bytecode: aleth-vm --vm jit.
  3. Combined with -dump flag you could print the LLVM IR code: EVMJIT=-dump aleth-vm --vm jit.
  4. You will not get 1 to 1 mapping of Solidity code. In the LLVM IR there is a lot of runtime helper functions and probably solidity also generates some additional EVM code even for empty contract.

from evmjit.

chfast avatar chfast commented on September 16, 2024

You can also ask questions in https://gitter.im/ethereum/evmjit.

from evmjit.

Yogasree-Segar avatar Yogasree-Segar commented on September 16, 2024

Hello, I wanted to convert my own etherum bytecode to llvm ir. Can you guide me about how to use this tool and the other tool - aleth mentioned in the above chat.

from evmjit.

Related Issues (20)

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.