#llvm #stack #compiler #maps #parser #binary #map

llvm_stackmap

A library capable of parsing stack maps emitted by the LLVM compiler

2 releases

0.1.5 Jul 8, 2024
0.1.4 Sep 28, 2022

#1014 in Parser implementations

Download history 172/week @ 2024-07-06 183/week @ 2024-07-13 11/week @ 2024-07-20 24/week @ 2024-07-27 1/week @ 2024-08-03 11/week @ 2024-09-14 42/week @ 2024-09-21 8/week @ 2024-09-28

61 downloads per month

AGPL-3.0-only

31KB
624 lines

llvm-stackmap

This is a library that can be used to parse stack maps emitted by the experimental stack maps feature provided by LLVM

Example

Parsing a stack map embedded into the binary objdump can be done via the following snippet:

use llvm_stackmap::StackMap;
use std::path::PathBuf;

let path_to_elf = PathBuf::from_str("objdump").unwrap();
let sm = StackMap::from_path(path_to_elf).unwrap();

Dependencies

~135–560KB
~10K SLoC