Skip to content

Instantly share code, notes, and snippets.

@XMPPwocky
Created January 16, 2015 16:35
Show Gist options
  • Select an option

  • Save XMPPwocky/d08172c50274ed5806db to your computer and use it in GitHub Desktop.

Select an option

Save XMPPwocky/d08172c50274ed5806db to your computer and use it in GitHub Desktop.
fn main() {
let x = Box::new(42u32);
}
.text
.file "rust-out.0.rs"
.section .text._ZN4main20h4a99dcbb12c8dbf8eaaE,"ax",@progbits
.align 16, 0x90
.type _ZN4main20h4a99dcbb12c8dbf8eaaE,@function
_ZN4main20h4a99dcbb12c8dbf8eaaE:
.cfi_startproc
cmpq %fs:112, %rsp
ja .LBB0_2
movabsq $8, %r10
movabsq $0, %r11
callq __morestack
retq
.LBB0_2:
pushq %rax
.Ltmp0:
.cfi_def_cfa_offset 16
movl $4, %edi
xorl %esi, %esi
callq je_mallocx@PLT
testq %rax, %rax
je .LBB0_3
movl $42, (%rax)
movl $4, %esi
xorl %edx, %edx
movq %rax, %rdi
popq %rax
jmp je_sdallocx@PLT
.LBB0_3:
callq _ZN3oom20h7dffc1525b0c8919z3aE@PLT
.Ltmp1:
.size _ZN4main20h4a99dcbb12c8dbf8eaaE, .Ltmp1-_ZN4main20h4a99dcbb12c8dbf8eaaE
.cfi_endproc
.section .text.main,"ax",@progbits
.globl main
.align 16, 0x90
.type main,@function
main:
.cfi_startproc
movq %rsi, %rax
movq %rdi, %rcx
leaq _ZN4main20h4a99dcbb12c8dbf8eaaE(%rip), %rdi
movq %rcx, %rsi
movq %rax, %rdx
jmp _ZN2rt10lang_start20h099797e429a886b1iZzE@PLT
.Ltmp2:
.size main, .Ltmp2-main
.cfi_endproc
.section ".note.GNU-stack","",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment