0xMiden / 0xMiden/compiler

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

未关闭
#1,029 0 条评论 0 个 reaction 已指派 1 人 已被 @mooori 认领 在 GitHub 查看
good first issue
主要语言
Rust
星标
115
派生
84
平均合并
1 天 8 小时
30 天内合并 PR
15

描述

As proposed by @bitwalker in [this comment](https://github.com/0xMiden/compiler/pull/1023#pullrequestreview-4001973009):

> [...] 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.

贡献指南

打开贡献指南

调研方向

The issue depends on #1028 for section size breakdowns. Start by reviewing that PR to understand the package structure and size reporting. The new `diff` subcommand will need to be added to `objtool`, likely in a file like `src/objtool/diff.rs`. It should compare two `.masp` files, outputting size differences per section. Check existing `objtool` commands for patterns on argument parsing and output formatting.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
cli, tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
40/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。