➤Each family of processes has its own set of instructions, the set of instructions are called machine instructions
➤A processor understands only machine level language instructions which are strings of ones and zeros however machine level level language is to obscure and complex for use in software development. So coma the low level assembly language is designed for a specific family of processes that represents various instructions and symbolic code and IMO understandable form.
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.
Who should know assembly language?
There are two primary reasons to learn assembly language: because you want to use it directly, or because you want to understand computers at a fundamental level.
From a practical standpoint, only a relative handful of the world’s engineers and computer scientists actually use assembly language.
The overwhelming majority of software development, including virtually all applications development of any kind, uses high level programming languages, and not assembly code. Some specific areas where assembly language gets used are:
- Firmware
- Operating systems
- Device drivers
- Language design
- Compiler design
- Embedded systems
- Hardware design
- Advanced cryptography
- Theoretical computer science
The other reason to learn assembly language is just to gain a better understanding of what is actually going on deep in the guts of a computer.
Assembly Language is easy to Learn, but hard to master!"
0 Comments:
Post a Comment