Skip to content

Instantly share code, notes, and snippets.

@yanok
Created December 14, 2015 21:26
Show Gist options
  • Save yanok/2578e20fb50f61d568f9 to your computer and use it in GitHub Desktop.
Save yanok/2578e20fb50f61d568f9 to your computer and use it in GitHub Desktop.
.intel_syntax
/* main : () -> int */
.text
.globl _main
_main:
push rbp
mov rbp, rsp
lea rdi, [rip + main.S_0]
call _print
main.L_main0:
mov rax, 0
mov rsp, rbp
pop rbp
ret
main.L_main:
mov rax, 0
mov rsp, rbp
pop rbp
ret
main.end:
main.S_0:
.string "Hello, world!\n"
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment