#llvm #maps #compiler #emitted #capable #features #stackmap

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

#253 in Programming languages

Download history 6/week @ 2024-11-24 1/week @ 2024-12-01 6/week @ 2024-12-08 10/week @ 2025-01-26 32/week @ 2025-02-02 18/week @ 2025-02-09 35/week @ 2025-02-16 41/week @ 2025-02-23 50/week @ 2025-03-02 3/week @ 2025-03-09

132 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

~160–610KB
~11K SLoC