Skip to content

Instantly share code, notes, and snippets.

@stffrdhrn
Created September 28, 2018 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stffrdhrn/16222a6b989e040962b24140ed5fd70e to your computer and use it in GitHub Desktop.
Save stffrdhrn/16222a6b989e040962b24140ed5fd70e to your computer and use it in GitHub Desktop.
.file "put.c"
.section .text
.align 4
.global call_puts
.type call_puts, @function
call_puts:
l.movhi r3, ha(.LC0)
l.j puts
l.addi r3, r3, lo(.LC0)
.size call_puts, .-call_puts
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "My test string.\n"
.ident "GCC: (GNU) 9.0.0 20180426 (experimental)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment