All Projects → aengelke → Rellume

aengelke / Rellume

Licence: lgpl-2.1
Lift x86-64 to performant LLVM IR

Labels

Projects that are alternatives of or similar to Rellume

Woboq codebrowser
Woboq CodeBrowser
Stars: ✭ 837 (+1760%)
Mutual labels:  llvm
Llvm Cheatsheet
LLVM, clang, ninja, dyld and others.
Stars: ✭ 36 (-20%)
Mutual labels:  llvm
Tinygo
Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
Stars: ✭ 9,068 (+20051.11%)
Mutual labels:  llvm
Llhttp
Port of http_parser to llparse
Stars: ✭ 841 (+1768.89%)
Mutual labels:  llvm
Zion
A statically-typed strictly-evaluated garbage-collected readable programming language.
Stars: ✭ 33 (-26.67%)
Mutual labels:  llvm
Kylin Llvm Obfuscator
based on llvm 5.0.1 release with ollvm
Stars: ✭ 37 (-17.78%)
Mutual labels:  llvm
Ldc
The LLVM-based D Compiler.
Stars: ✭ 937 (+1982.22%)
Mutual labels:  llvm
Llvm2graphml
Explore LLVM Bitcode interactively using a graph database
Stars: ✭ 44 (-2.22%)
Mutual labels:  llvm
Unlisp Llvm
Compiler for a toy Lisp language
Stars: ✭ 33 (-26.67%)
Mutual labels:  llvm
Researchnote
通过issue和README来记录日常学习研究笔记 关注 机器学习系统,深度学习, LLVM,性能剖视, Linux操作系统内核 话题 关注 C/C++. JAVA. Python. Golang. Chisel. 编程语言话题 ( Writing Blogs using github issue and markdown! (inculding Machine Learning algs and system, LLVM, Linux kernel, java, python, c++, golang)
Stars: ✭ 41 (-8.89%)
Mutual labels:  llvm
Datuner
DATuner Repository
Stars: ✭ 8 (-82.22%)
Mutual labels:  llvm
Llvm Gbz80
LLVM port to the GBZ80 CPU
Stars: ✭ 32 (-28.89%)
Mutual labels:  llvm
Llvm Tutorial Standalone
DEPRECATED (Use: https://github.com/llvm-hs/llvm-hs-kaleidoscope )
Stars: ✭ 38 (-15.56%)
Mutual labels:  llvm
Cfl
a Compileable statically typed Functional programming Language
Stars: ✭ 7 (-84.44%)
Mutual labels:  llvm
Domtresat
Dominator Tree LLVM Pass to Test Satisfiability
Stars: ✭ 42 (-6.67%)
Mutual labels:  llvm
Pragmascript
Stars: ✭ 7 (-84.44%)
Mutual labels:  llvm
Coat
EDSL for C++ to make just-in-time code generation easier
Stars: ✭ 37 (-17.78%)
Mutual labels:  llvm
Stoat
STatic (LLVM) Object file Analysis Tool
Stars: ✭ 44 (-2.22%)
Mutual labels:  llvm
Processwarp
Stars: ✭ 43 (-4.44%)
Mutual labels:  llvm
Llvm To Snes
LLVM IR → WLA DX (ASM 65c816) → SNES Rom
Stars: ✭ 39 (-13.33%)
Mutual labels:  llvm

Rellume — Lifts x86-64 to LLVM IR

Rellume is a lifter for x86-64 machine code to LLVM IR with focus on the performance of the lifted code. The generated LLVM IR can be compiled and executed again, for example using LLVM's JIT compiler, ideally having the same (or even better) performance as the original code. Special care is taken to model the SSE instructions and pointers in a way that the optimizer can generate efficient code. The lifter operates on a set of specified instructions (or decodes the control flow automatically) and creates an LLVM-IR function with the same semantics. These functions operate on a generic structure containing the virtual x86-64 CPU state, but can be wrapped for an arbitrary calling convention.

Use Cases

  • Binary rewriting:
    • Performance improvement: specialization for runtime data, e.g. known parameters or memory locations. This is implemented in the LLVM back-end of DBrew.
    • Instrumentation: insert tracing and interception code in hot code paths, where high quality machine code is required.
  • Binary analysis: existing tooling for analysis of LLVM IR code can be re-used for binary code.

Example

See examples/lifter.c

Publications

  • Alexis Engelke and Josef Weidendorfer. Using LLVM for Optimized Light-Weight Binary Re-Writing at Runtime. In Proceedings of the 22nd int. Workshop on High-Level Parallel Programming Models and Supportive Environments (HIPS 2017). Orlando, US, 2017 (PDF of pre-print version)

License

LGPLv2.1+

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].