Alessandro Di Federico e0073d8874 ProgramCounterHandler: CSVs are internal
This commit fixes a bug that lead to be unable to instantiate from a
`Module` `ProgramCounterHandler`. The reason for this was that
`ProgramCounterHandler` was using `Module::getGlobalVariable` which, by
default, ignores variables with internal linkage.
2021-01-26 19:05:44 +01:00
2020-10-21 10:34:34 +02:00
2021-01-26 18:59:56 +01:00
2021-01-26 18:59:56 +01:00
2021-01-24 18:37:35 +01:00
2020-11-13 09:59:42 +01:00
2021-01-23 00:41:52 +01:00
2020-11-09 08:52:51 +01:00
2019-02-11 16:09:23 +01:00

*******
Purpose
*******

`revng` is a static binary translator. Given a input ELF binary for one of the
supported architectures (currently MIPS, ARM and x86-64) it will analyze it and
emit an equivalent LLVM IR. To do so, `revng` employs the QEMU intermediate
representation (a series of TCG instructions) and then translates them to LLVM
IR.

************
How to build
************

`revng` employs CMake as a build system. The build system will try to
automatically detect the QEMU installation and the GCC toolchains require to
build the test binaries.

If everything is in standard locations, you can just run::

    mkdir build/
    cd build/
    cmake ..
    make -j$(nproc)
    make install

For further build options and more advanced configurations see
docs/BuildSystem.rst (TODO: reference).

To run the test suite simply run::

    make test

***********
Example run
***********

The simplest possible example consists in the following::

    cd build
    cat > hello.c <<EOF
    #include <stdio.h>

    int main(int argc, char *argv[]) {
      printf("Hello, world!\n");
    }
    EOF
    armv7a-hardfloat-linux-uclibceabi-gcc -static hello.c -o hello.arm
    ./translate hello.arm
    # ...
    ./hello.arm.translated
    Hello, world!
S
Description
Automated archival mirror of github.com/revng/revng
Readme GPL-2.0 24 MiB
Languages
C++ 77.1%
Python 12.6%
MLIR 4.4%
CMake 1.9%
LLVM 1.4%
Other 2.5%