Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] show current function assembly code #18919

Open
loynoir opened this issue Jan 12, 2025 · 1 comment
Open

[feat] show current function assembly code #18919

loynoir opened this issue Jan 12, 2025 · 1 comment
Labels
A-vscode vscode plugin issues C-feature Category: feature request

Comments

@loynoir
Copy link

loynoir commented Jan 12, 2025

feat

show current function assembly code

description

https://github.com/pacak/cargo-show-asm

Integrate cargo-show-asm into rust-analyzer.

#[inline(never)]
pub fn add42(x: u8) -> u8 {
    let mut a: u8 = x;
    a += 21u8;
    a += 21u8;
    a
}
$ cargo asm --simplify --lib -p cargo_show_asm_example cargo_show_asm_example::add42 2>/dev/null
cargo_show_asm_example::add42:
        lea eax, [rdi + 42]
        ret
@loynoir loynoir added the C-feature Category: feature request label Jan 12, 2025
@lnicola lnicola added the A-vscode vscode plugin issues label Jan 12, 2025
@lnicola
Copy link
Member

lnicola commented Jan 12, 2025

CC #14356

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-vscode vscode plugin issues C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants