Created
November 22, 2018 23:16
-
-
Save vihanb/78ea1465fac1defa2f0bfe87a616748d to your computer and use it in GitHub Desktop.
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
.section __TEXT,__text,regular,pure_instructions | |
.macosx_version_min 10, 13 | |
.globl _main ## -- Begin function main | |
.p2align 4, 0x90 | |
_main: ## @main | |
## %bb.0: ## %entry | |
pushq %rax | |
movl $13, %edi | |
callq _malloc | |
movw $8303, 4(%rax) ## imm = 0x206F | |
movl $1819043144, (%rax) ## imm = 0x6C6C6548 | |
movw $8548, 10(%rax) ## imm = 0x2164 | |
movl $1819438935, 6(%rax) ## imm = 0x6C726F57 | |
movb $0, 12(%rax) | |
movq %rax, %rdi | |
callq _puts | |
xorl %eax, %eax | |
popq %rcx | |
retq | |
## -- End function | |
.section __TEXT,__cstring,cstring_literals | |
L___unnamed_1: ## @0 | |
.asciz "Hello " | |
L___unnamed_2: ## @1 | |
.asciz "World!" | |
.subsections_via_symbols |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment