Linux 64bit 어셈블러에서 hello, world
환경
Windows Subsystem for Linux
참고 : Windows Subsystem for Linux를 설치해 봅시다!
소스 등
hello.s
msg:    .ascii "hello, world\n"
    .globl _start
_start:
    mov $1,%rax     # write
    mov $1,%rdi # stdout
    mov $msg,%rsi   # addr
    mov $13,%rdx    # len
    syscall
    mov $60,%rax    # exit
    mov $0,%rdi # status
    syscall
as hello.s -o hello.o
ld hello.o -o hello -s
실행 결과
 
 참고
Reference
이 문제에 관하여(Linux 64bit 어셈블러에서 hello, world), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/Stosstruppe/items/67d70ae996d2921cdb88텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)