Created
October 20, 2017 08:08
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text | |
.file "blah.c" | |
.globl main | |
.align 16, 0x90 | |
.type main,@function | |
main: # @main | |
.cfi_startproc | |
# BB#0: | |
pushq %rbp | |
.Ltmp0: | |
.cfi_def_cfa_offset 16 | |
.Ltmp1: | |
.cfi_offset %rbp, -16 | |
movq %rsp, %rbp | |
.Ltmp2: | |
.cfi_def_cfa_register %rbp | |
subq $16, %rsp | |
movabsq $.L.str, %rdi | |
movl $0, -4(%rbp) | |
movb $0, %al | |
callq printf | |
xorl %ecx, %ecx | |
movl %eax, -8(%rbp) # 4-byte Spill | |
movl %ecx, %eax | |
addq $16, %rsp | |
popq %rbp | |
retq | |
.Lfunc_end0: | |
.size main, .Lfunc_end0-main | |
.cfi_endproc | |
.type .L.str,@object # @.str | |
.section .rodata.str1.1,"aMS",@progbits,1 | |
.L.str: | |
.asciz "Hello Wolrd" | |
.size .L.str, 12 | |
.ident "clang version 3.8.0-2ubuntu3~trusty4 (tags/RELEASE_380/final)" | |
.section ".note.GNU-stack","",@progbits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment