0xMiden/compiler

feat(objtool): diff two packages in terms of size

Open

#1,029 opened on Mar 25, 2026

 (0 comments) (0 reactions) (1 assignee)Rust (70 forks)github user discovery
good first issue

Repository metrics

Stars
 (110 stars)
PR merge metrics
 (Avg merge 4d 7h) (51 merged PRs in 30d)

Description

As proposed by @bitwalker in this comment:

[...] provide a lower-level plumbing subcommand, diff, which compares two packages directly in terms of their size and where that size comes from - but the actual responsibility for producing those packages is left up to a higher-level tool, i.e.

$ cargo miden build --debug -o a.masp
$ midenc asm/miden-project.toml -o b.masp
$ objtool diff a.masp b.masp

Depends on #1028 for breaking down sizes per sections.

Contributor guide