Skip to content

Generate commented assembly with --emit=asm #35741

Closed
@jrmuizel

Description

@jrmuizel

clang -S produces nicely commented .s files. It would be nice if rustc did this too.

e.g. simd shuffles are commented
.loc directives have the corresponding line number comment
.loc 1 4 25 is_stmt 1 ## test.c:4:25
debug information is commented
.byte 14 ## DW_FORM_strp
.byte 17 ## DW_AT_low_pc
.byte 1 ## DW_FORM_addr
.byte 18 ## DW_AT_high_pc
.byte 1 ## DW_FORM_addr

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions