You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instrew is a performance-targeted transparent dynamic binary translator/instrumenter based on LLVM. Currently supported source/guest architectures are x86-64, AArch64, and RISC-V64 (rv64imafdc); supported host architectures are x86-64 and AArch64. The original code is lifted to LLVM-IR using [Rellume](https://github.com/aengelke/rellume), where it can be modified and from which new machine code is generated using LLVM's JIT compiler.
5
+
Instrew is a performance-targeted transparent dynamic binary translator(/instrumenter) based on LLVM. Currently supported source/guest architectures are x86-64, AArch64, and RISC-V64 (rv64imafdc); supported host architectures are x86-64 and AArch64. The original code is lifted to LLVM-IR using [Rellume](https://github.com/aengelke/rellume), where it can be modified and from which new machine code is generated using LLVM's JIT compiler.
6
6
7
7
### Using Instrew
8
8
@@ -27,11 +27,11 @@ You can also use some options to customize the translation:
27
27
-`-profile`: print information about the time used for translation.
28
28
-`-callret`: enable call–return optimization. Often gives higher run-time performance at higher translation-time.
29
29
-`-targetopt=n`: set LLVM optimization level, 0-3. Default is 3, use 0 for FastISel.
30
-
-`-callconv=0`: use C calling convention instead of architecture-specific optimized calling convention; primarily useful for debugging.
30
+
-`-fastcc=0`: use C calling convention instead of architecture-specific optimized calling convention; primarily useful for debugging.
-`-dumpir=n`: print IR at different stages, 1=after lifting, 2=after callconv adjustment/instrumentation, 4=after optimization, 8=after codegen. These values can be OR-ed for multiple dumps. Generates lots of output.
32
+
-`-dumpir={lift,cc,opt,codegen}`: print IR after the specified stage. Generates lots of output.
33
33
-`-dumpobj`: dump compiled code into object files in the current working directory.
34
-
-All options are listed in [server/config.inc](server/config.inc).
0 commit comments