0% found this document useful (0 votes)
468 views1 page

Installation and Execution Steps of Nasm On Fedora

To install NASM on a Linux system, download the RPM file or source archive from the NASM website. Extract the source archive and run the configure and make commands to build and install NASM. Check for installation by running the whereis command. To assemble and run a NASM program, use nasm to assemble the .asm file into an object file, ld to link it into an executable, then run the executable.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
468 views1 page

Installation and Execution Steps of Nasm On Fedora

To install NASM on a Linux system, download the RPM file or source archive from the NASM website. Extract the source archive and run the configure and make commands to build and install NASM. Check for installation by running the whereis command. To assemble and run a NASM program, use nasm to assemble the .asm file into an object file, ld to link it into an executable, then run the executable.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

For installation of NASM (make sure that you login as root)

1. RPM file – copy RPM file in Home. On terminal > rpm –ivh nasm-2.10.09-
3.x86_64.rpm

2. check nasm is installed or not > whereis nasm it will show the path if alrea
dy installed. Otherwise go to www.nasm.us

Download the the topmost directory Download the Linux source archive nasm-
X.XX.ta.gz

Unpack the archive into a directory which creates a subdirectory nasm-X. XX.

>tar xvzf nasm<version>tar.gz

>ls will get nasm<version> dir

>cd nasm<version>

>./configure. This shell script will find the best C compiler to use and set up
Makefiles accordingly.

>make to build the nasm

>make install to install nasm 

Execution steps:

nasm –f elf64 hello.asm //-f for create file format, elf64 executable
linkable file format

ld –o hello hello.o // To link the object file and create an executable file
named hello

./hello //Execute the program

You might also like