Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 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