{"id":25404682,"url":"https://github.com/paradigmxyz/jitevm","last_synced_at":"2025-10-31T00:31:24.321Z","repository":{"id":184284011,"uuid":"671600200","full_name":"paradigmxyz/jitevm","owner":"paradigmxyz","description":"convert evm bytecode to native machine code and go vroom - just an experiment, probably broken, reach out to georgios@paradigm.xyz to contribute / productionize.","archived":true,"fork":false,"pushed_at":"2024-06-20T02:35:51.000Z","size":60,"stargazers_count":139,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T14:51:53.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paradigmxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-27T17:33:19.000Z","updated_at":"2024-06-20T02:36:02.000Z","dependencies_parsed_at":"2023-07-27T20:08:32.728Z","dependency_job_id":null,"html_url":"https://github.com/paradigmxyz/jitevm","commit_stats":null,"previous_names":["paradigmxyz/jitevm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradigmxyz%2Fjitevm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradigmxyz%2Fjitevm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradigmxyz%2Fjitevm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradigmxyz%2Fjitevm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paradigmxyz","download_url":"https://codeload.github.com/paradigmxyz/jitevm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239084337,"owners_count":19578774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-16T04:01:15.310Z","updated_at":"2025-10-31T00:31:23.998Z","avatar_url":"https://github.com/paradigmxyz.png","language":"Rust","funding_links":[],"categories":["EVM - Ethereum Virtual Machine"],"sub_categories":[],"readme":"# JIT-EVM Experiments\n\n_This repository has been superseded by https://github.com/paradigmxyz/revmc.\n_\n## Goal\n\nEvaluate performance gains to expect when EVM were to compile hot contracts into machine code (rather than interpreting the EVM bytecode)\n\n\n## Todos\n\n* Support all instructions\n* Performance evaluation\n* Error handling\n* Gas accounting\n\n\n## Experiment (MacOS, see Ubuntu below)\n\nSetup:\n* LLVM 14 installed with `brew` in `/opt/homebrew/opt/llvm`\n\nRun:\n```\nLLVM_SYS_140_PREFIX=/opt/homebrew/opt/llvm cargo run\n```\n\nWhat it does:\n* Fibonacci sequence calculator hand-implemented in EVM bytecode\n* Runs it in EVM interpreter\n* Compiles it to machine code and executes it\n* You compare that the outputs correspond to the 15th Fibonacci number (which is 377)\n\nHow to interpret the output:\n* Modulo indexing convention, 15th Fibonacci number is 377 (says Google)\n* Last line of demo output (this is from JIT VM): return value is 377\n* Scrolling up past the LLVM IR: last state of interpreter has 377 in the 0th stack entry\n\n\n## Tests (MacOS, see Ubuntu below)\n\n```\nRUST_BACKTRACE=1 LLVM_SYS_140_PREFIX=/opt/homebrew/opt/llvm RUST_MIN_STACK=8388608 cargo test -- --nocapture\n```\n\n\n## Ubuntu\n\nInstall:\n```\nsudo apt-get install llvm-14 llvm-14-dev libllvm14\n```\n\nAdjust paths above accordingly (leaving `LLVM_SYS_140_PREFIX=/opt/homebrew/opt/llvm` away entirely \"works for me\").\n\n\n## References\n\n* https://github.com/TheDan64/inkwell\n* https://www.mattkeeter.com/projects/elfjit/\n* https://github.com/mkeeter/advent-of-code/blob/master/2018/day21-jit/src/main.rs\n* https://github.com/bluealloy/revm\n* https://github.com/ethereum/evmone/pull/320\n* https://github.com/axic/snailtracer\n* https://doc.rust-lang.org/reference/type-layout.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadigmxyz%2Fjitevm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparadigmxyz%2Fjitevm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadigmxyz%2Fjitevm/lists"}