0% found this document useful (0 votes)
47 views4 pages

Assembly - Environment Setup

This document discusses setting up an environment for assembly language programming. It recommends using NASM assembler on Linux. To use NASM, you need an IBM PC compatible computer with Linux installed. You can check if NASM is already installed or download and compile it from the NASM website. Compiling NASM involves unpacking the archive, running configuration and make scripts, and installing the binaries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views4 pages

Assembly - Environment Setup

This document discusses setting up an environment for assembly language programming. It recommends using NASM assembler on Linux. To use NASM, you need an IBM PC compatible computer with Linux installed. You can check if NASM is already installed or download and compile it from the NASM website. Compiling NASM involves unpacking the archive, running configuration and make scripts, and installing the binaries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

11/23/23, 11:59 AM Assembly - Environment Setup

Menu Search tutorials, courses and ebooks...


Login

Home

Coding
HTMLGround
CSS Javascript SQL Python Java C C++

Jobs

Whiteboard
Assembly - Environment Setup

Tools

Local Environment Setup


Assembly language is dependent upon the instruction set and the architecture
of the processor. In this tutorial, we focus on Intel-32 processors like Pentium.
To follow this tutorial, you will need −

An IBM PC or any equivalent compatible computer


A copy of Linux operating system
A copy of NASM assembler program

There are many good assembler programs, such as −

Microsoft Assembler (MASM)


Borland Turbo Assembler (TASM)
The GNU assembler (GAS)

We will use the NASM assembler, as it is −

Free. You can download it from various web sources.


Well documented and you will get lots of information on net.
https://www.tutorialspoint.com/assembly_programming/assembly_environment_setup.htm 1/4
11/23/23, 11:59 AM Assembly - Environment Setup

Could be used on both Linux and Windows.

Installing NASM
If you select "Development Tools" while installing Linux, you may get NASM
installed along with the Linux operating system and you do not need to
download and install it separately. For checking whether you already have
NASM installed, take the following steps −

Open a Linux terminal.


Type whereis nasm and press ENTER.
If it is already installed, then a line like, nasm: /usr/bin/nasm appears.
Otherwise, you will see just nasm:, then you need to install NASM.

To install NASM, take the following steps −

Check The netwide assembler (NASM) website for the latest version.
Download the Linux source archive nasm-X.XX.ta.gz, where X.XX is the
NASM version number in the archive.

Unpack the archive into a directory which creates a subdirectory nasm-


X. XX.
cd to nasm-X.XX and type ./configure. This shell script will find the
best C compiler to use and set up Makefiles accordingly.

Type make to build the nasm and ndisasm binaries.

Type make install to install nasm and ndisasm in /usr/local/bin and to


install the man pages.

This should install NASM on your system. Alternatively, you can use an RPM
distribution for the Fedora Linux. This version is simpler to install, just double-
click the RPM file.

Kickstart Your Career


Get certified by completing the course

Get Started
https://www.tutorialspoint.com/assembly_programming/assembly_environment_setup.htm 2/4
11/23/23, 11:59 AM Assembly - Environment Setup

Print Page Previous Next

Advertisements

Tutorials Point is a leading Ed Tech


company striving to provide the best
learning material on technical and non-
technical subjects.

About us Terms Our Products


Company Terms of use Free Library

https://www.tutorialspoint.com/assembly_programming/assembly_environment_setup.htm 3/4
11/23/23, 11:59 AM Assembly - Environment Setup

Our Team Privacy Policy Articles

Careers Refund Policy Coding Ground

Jobs Cookies Policy Certifications

Become a Teacher FAQ's Courses

Affiliates eBooks

Contact Us Corporate Training

Free Web Graphics

Contact Us
Tutorials Point India Private Limited,
Incor9 Building, Kavuri Hills, Madhapur,
Hyderabad, Telangana - 500081, INDIA

© Copyright 2023. All Rights Reserved.

https://www.tutorialspoint.com/assembly_programming/assembly_environment_setup.htm 4/4

You might also like