Published online by Cambridge University Press: 17 July 2025
INTRODUCTION TO ASSEMBLER
Initially when computer was invented, people used to communicate with them by on and off switches denoting primitive instructions. Then machine language was introduced, where programmer have to mention instructions as well as operands and addresses in binary format, i.e., using 0 and 1. Both writing and understanding a machine language program is difficult. The functionality of this program is difficult to understand, and a person going through it may not be sure of what can be achieved through the program.
Assembly language program is one in which symbols such as letters, digits and special characters, are used for operation part, address part and other parts of instruction code. Both machine language and assembly language are referred as low level languages as the coding a problem is at the individual instruction level, i.e., for each line of a program written in these languages one and only one machine instruction is executed. Assembly language is considered as a second generation language. Computers based on different processors have got their own assembly languages which depend on the architecture of the processor. An assembler translates a program written in assembly language to machine language code.
Output of an assembler is an object file with extension ‘.obj’. It is the role of linker (another system-software) to make executable .exe file from it. Another system-software called loader, present in operating systems, loads the executable on memory when the program is required to run. The process is illustrated in Fig. 3.1. Process for producing executable file.
Typically, assemblers make two passes over the assembly file, i.e., reads the assembly program twice. (One pass assemblers with more complicated design are also available.)
To save this book to your Kindle, first ensure no-reply@cambridge-org.demo.remotlog.com is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.