Advantages of Using Assembly Language
- It allows complex jobs to run in a simpler way.
- It is memory efficient, as it requires less memory.
- It is faster in speed, as its execution time is less.
- It is mainly hardware-oriented.
- It requires less instruction to get the result.
- It is used for critical jobs.
- It is not required to keep track of memory locations.
- It is a low-level embedded system.
Disadvantages of Assembly Language
- It takes a lot of time and effort to write the code for the same.
- It is very complex and difficult to understand.
- The syntax is difficult to remember.
- It has a lack of portability of program between different computer architectures.
- It needs more size or memory of the computer to run the long programs written in Assembly Language.
Syntax of Assembly Language
An assembly program can be divided into three sections −- The data section,
- The bss section,
- The text section.
The bss Section The bss section is used for declaring variables. The syntax for declaring bss section is − section.bss
The text section The text section is used for keeping the actual code. This section must begin with the declaration global _start, which tells the kernel where the program execution begins. The syntax for declaring text section is − section.text global _start _start:
Assembler
- Assembler is a program that converts source code programs written in assembly language into object files in machine language.
- Popular assembler has emerged over the year for the Intel family of processor this includes-
➤ NASM (Netwide Assembler for both Window and Linux)
➤ GNU assembler distributed by the free software foundation.
- Firmware
- Operating systems
- Device drivers
- Language design
- Compiler design
- Embedded systems
- Hardware design
- Advanced cryptography
- Theoretical computer science
Assembly Language is easy to Learn, but hard to master!"