Hello,world!
.section .rodata
msg:
.asciz "Hello,world!\n"
.section .text
.globl _start
_start:
pushl $msg
call printf
movl $1, %eax
movl $0, %ebx
int $0x80
/*
$ as -o hello.o hello.s
$ ld -dynamic-linker /lib/ld-linux.so.2 -lc -o hello hello.o
$ ./hello
Hello,world!
*/


浙公网安备 33010602011771号