nasm
1.1、nasm简介
short for:Netwide Assembler
是什么 ?:an 80x86 and x86-64 assembler designed for portability and modularity. It supports a range of object file formats, including Linux and *BSD a.out, ELF, COFF, Mach-O, 16-bit and 32-bit OBJ (OMF) format, Win32 and Win64. It will also output plain binary files, Intel hex and Motorola S-Record formats. Its syntax is designed to be simple and easy to understand, similar to the syntax in the Intel Software Developer Manual with minimal complexity. It supports all currently known x86 architectural extensions, and has strong support for macros.
开发语言:C
官方主页:https://www.nasm.us
1.2、通过包管理器安装nasm
操作系统包管理器安装命令
Windowsscoopscoop install nasm
WindowsChocolateychoco install -y nasm
macOSHomeBrewbrew install nasm
GNU/LinuxLinuxBrewbrew install nasm
aptsudo apt-get install -y nasm
CentOSyumsudo yum install -y nasm
dnfsudo dnf install -y nasm
openSUSEzyppersudo zypper install -y nasm
Alpine Linuxapksudo apk add nasm

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm nasm
Gentoo LinuxPortagesudo emerge nasm
1.3、通过编译源码安装nasm 

step1、安装依赖

下载时cURL
解压时tarxz
编译时POSIX shGNU CoreUtilsGNU makeGCC ( gcc )   | LLVM / Clang
运行时glibc ( libc.solibdl.sold-linux-x86-64.so )

step2、使用curl命令下载nasm源码包 (

curl -LO http://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.xz

step3、使用tar解压nasm源码包

tar vxf nasm-2.14.02.tar.xz

step4、进入nasm-2.14.02目录

cd nasm-2.14.02

step5、查看nasm-2.14.02目录中的内容

step6、配置、编译、安装

./configure && make && sudo make install
1.4、nasm中包含的命令