[英]Warning: end of file not at end of a line; newline inserted Assembley
我試圖在 Assembly 中實現 Hello world 程序,但有一些警告:
為了實現我用
as -gstabs helloasm.s -o helloasm.o
警告:
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
那么,我該如何解決這個警告呢?
正如問題時的評論中所指出的,可以通過確保程序集源文件以換行符結尾來解決此警告。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.