feat(objtool): diff two packages in terms of size
- 主要语言
- 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