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

When printing asm also include relevant constants #261

Merged
merged 7 commits into from
Apr 4, 2024
Merged

When printing asm also include relevant constants #261

merged 7 commits into from
Apr 4, 2024

Conversation

pacak
Copy link
Owner

@pacak pacak commented Apr 4, 2024

.section .text.sample::panics,"ax",@progbits
        .globl  sample::panics
        .p2align        4, 0x90
        .type   sample::panics,@function
sample::panics:
        .cfi_startproc
        sub rsp, 56
        .cfi_def_cfa_offset 64
        lea rax, [rip + .L__unnamed_7]
        mov qword ptr [rsp + 8], rax
        mov qword ptr [rsp + 16], 1
        mov rax, rsp
        mov qword ptr [rsp + 24], rax
        vxorps xmm0, xmm0, xmm0
        vmovups xmmword ptr [rsp + 32], xmm0
        lea rsi, [rip + .L__unnamed_8]
        lea rdi, [rsp + 8]
        call qword ptr [rip + core::panicking::panic_fmt@GOTPCREL]

.section .rodata..L__unnamed_16,"a",@progbits
.L__unnamed_16:
        .ascii  "oh noes asdf wef wef wf wefwefwef wef! bob"
        .size   .L__unnamed_16, 42

.section .data.rel.ro..L__unnamed_7,"aw",@progbits
        .p2align        3, 0x0
.L__unnamed_7:
        .quad   .L__unnamed_16
        .asciz  "*\000\000\000\000\000\000"
        .size   .L__unnamed_7, 16

.section .rodata..L__unnamed_17,"a",@progbits
.L__unnamed_17:
        .ascii  "src/lib.rs"
        .size   .L__unnamed_17, 10

.section .data.rel.ro..L__unnamed_8,"aw",@progbits
        .p2align        3, 0x0
.L__unnamed_8:
        .quad   .L__unnamed_17
        .asciz  "\n\000\000\000\000\000\000\000%\000\000\000\005\000\000"
        .size   .L__unnamed_8, 24

Fixes #22

@pacak pacak merged commit 433caa9 into master Apr 4, 2024
3 checks passed
@pacak pacak deleted the const branch April 4, 2024 13:28
@pacak pacak mentioned this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When dumping code blocks also show relevalt constants
1 participant