-
源码安装
参见tutorialspoint,总是失败
-
apt安装
其实很简单,Ubuntu下
sudo apt install nasm
-
Example
源码
filename.asm
:section .data msg db "Hello World", 10 msglen equ $-msg section .text global _start _start: mov rax,1 mov rdi,1 mov rsi,msg mov rdx,msglen syscall mov rax,60 mov rdx,0 syscall
编译过程:
nasm -f elf64 filename.asm ld -o filename filename.o ./filename
-
References
(20200720已完成)在Windows上WSL中安装汇编环境NASM
最新推荐文章于 2024-04-20 01:15:29 发布