Jas*_*nov 6 assembly gcc x86-64
我试图在 Assembly 中实现 Hello world 程序,但有一些警告:
为了实现我使用
as -gstabs helloasm.s -o helloasm.o
Run Code Online (Sandbox Code Playgroud)
警告:
helloasm.s:汇编程序消息:
helloasm.s:警告:文件结尾不在行尾;插入换行符
下面有代码:
.global _start
.data
message:.ascii "Hello World\n"
.text
_start:
movq $1, %rax
movq $1, %rdi
movq $message, %rsi
movq $13, %rdx
syscall
movq $60, %rax
xorq %rdi, %rdi
syscall
Run Code Online (Sandbox Code Playgroud)
那么,我该如何解决这个警告呢?