About
This supports calling the Ghidra SLEIGH compiler from Rust code. Processors in Ghidra are described by .slaspec files, but SLEIGH libraries operates on the compiled .sla files. Now the compiled .sla artifacts can be produced directly from Rust code.
What's New?
For latest details check out the CHANGELOG.
Usage
let mut compiler = default;
let input_file = new;
let output_file = new;
compiler.compile?;
// Success! Can now use compiled x86-64.sla file
Compiler Details
The internal SLEIGH compiler is built from Ghidra 10.4.
The SLEIGH compiler may report warnings in its response which reference command line switches. For details on any reported switches, refer to SLEIGH compiler usage.
Related Work
Check out the libsla crate for interfacing with the Ghidra SLEIGH library to disassemble native instructions into pcode!