nasm:汇编语言的环境配置(rockylinux-linux)


NASM汇编语言的环境配置(rockylinux-linux):




一、NASM相关信息


NASM功能:x86构架cpu的汇编语言的编译器

NASM官方网址:https://www.nasm.us/

NASM官方下载地址:https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/





二、NASM汇编环境配置(rockylinux-linux)


1、NASM 仓库配置

文件名字:nasm.repo
文件路径:/etc/yum/yum.repos.d/


nasm.repo的文件内容:
[nasm] name=The Netwide Assembler baseurl=http://www.nasm.us/pub/nasm/stable/linux/ enabled=1 gpgcheck=0 [nasm-testing] name=The Netwide Assembler (release candidate builds) baseurl=http://www.nasm.us/pub/nasm/testing/linux/ enabled=0 gpgcheck=0 [nasm-snapshot] name=The Netwide Assembler (daily snapshot builds) baseurl=http://www.nasm.us/pub/nasm/snapshots/latest/linux/ enabled=0 gpgcheck=0




2、NASM汇编环境的安装(rockylinux-linux)

[root@rockylinux asm]# dnf search nasm


Last metadata expiration check: 0:01:42 ago on Wed 26 Jan 2022 03:40:53 AM CST.
============================== Name Exactly Matched: nasm ===============================
nasm.x86_64 : The Netwide Assembler, a portable x86 assembler with Intel-like syntax
nasm.i686 : The Netwide Assembler, a portable x86 assembler with Intel-like syntax
nasm.src : The Netwide Assembler, a portable x86 assembler with Intel-like syntax
============================= Name & Summary Matched: nasm ==============================
nasm-debuginfo.i686 : Debug information for package nasm
nasm-debuginfo.x86_64 : Debug information for package nasm
nasm-debugsource.i686 : Debug sources for package nasm
nasm-debugsource.x86_64 : Debug sources for package nasm
nasm-rdoff.i686 : Tools for the RDOFF binary format, sometimes used with NASM.
nasm-rdoff.x86_64 : Tools for the RDOFF binary format, sometimes used with NASM.
nasm-rdoff-debuginfo.i686 : Debug information for package nasm-rdoff
nasm-rdoff-debuginfo.x86_64 : Debug information for package nasm-rdoff
================================== Name Matched: nasm ===================================
nasm-doc.noarch : Detailed manual for the Netwide Assembler


[root@rockylinux asm]# dnf search nasm
[root@rockylinux asm]#

asm