スキル一覧に戻る
onbjerg

cargo-asm

by onbjerg

dotfiles

4🍴 1📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: cargo-asm description: Inspects generated assembly for Rust functions using cargo-asm. Use when analyzing low-level codegen, verifying SIMD/vectorization, or debugging performance at the instruction level.

cargo-asm

Displays the generated assembly for specific Rust functions.

Usage

cargo asm [OPTIONS] <PATH>

Where <PATH> is a function path like crate::module::function or a partial match.

Common Workflows

View assembly for a function

cargo asm my_crate::hot_loop

List all available symbols

cargo asm --lib

Show with source interleaved

cargo asm --rust my_crate::function

Check specific target features

RUSTFLAGS="-C target-cpu=native" cargo asm my_crate::simd_fn

Key Options

  • --rust - Interleave Rust source with assembly
  • --lib - Analyze library target (vs binary)
  • --bin <NAME> - Analyze specific binary
  • --release - Use release profile (default)
  • --dev - Use dev profile
  • --target <TRIPLE> - Cross-compile target

Tips

  • Always use --release (or it's on by default) to see optimized output
  • Use --rust to understand which source lines map to which instructions
  • Look for vmov, vpadd, etc. to verify SIMD vectorization
  • Missing function? Try --lib or check if it was inlined

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です