Skip to content

Emit assembly comments in the disassembly #397

Closed
@GabrielMajeri

Description

@GabrielMajeri

Pull request rust-lang/rust#53290 added the (nightly only) option -Z asm-comments, which makes LLVM emit comments in the disassembly, making it much more readable.

It would be awesome if the Rust playground could enable this flag in the disassembly view (for nightly builds, at least until it stabilises), possibly unconditionally (I don't think it has any downsides).

For implementation, I think it might be enough to add the flag here? Only issue I found is that that function doesn't have a parameter which would allow it to determine if it runs on nightly or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething new the playground could do

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions