Skip to content

Instantly share code, notes, and snippets.

@yanok
Created December 14, 2015 21:11
Show Gist options
  • Save yanok/b9c070f1c80ff6c2f4f3 to your computer and use it in GitHub Desktop.
Save yanok/b9c070f1c80ff6c2f4f3 to your computer and use it in GitHub Desktop.
.intel_syntax
.section .rodata
main.S_0:
.string "Hello, world!\n"
.text
.global main
.type main, @function
main:
push %rbp
mov %rbp, %rsp
mov %rdi, OFFSET FLAT:main.S_0
call print
L_main0:
mov %rax, 0
mov %rsp, %rbp
pop %rbp
ret
L_main:
mov %rax, 0
mov %rsp, %rbp
pop %rbp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment