SlideShare a Scribd company logo
COMSATS INSTITUTE OF INFORMATION TECHNOLOGY
VEHARI CAMPUS
DEPARTMENT OF COMPUTER SCIENCE
Subject Name:
ASSEMBLY LANGUAGE
Topic:
“QUESTIONS ABOUT ASSEMBLY LANGUAGE”
Submitted to:
ENGR. MUHAMMAD ABDULLAH SB
Submitted by:
FAISAL SHEHZAD
Roll: No:
SP17-MCS-020
Section:
MCS-B12-A
Date of Submitting:
20TH SEPTEMBER 2017
Assign.
No:
01
Q: No 1: What is assembly language according to above reading
material?
Ans:
Definition:
“Intermediate-level programming language which is higher (is easier to use
but runs slower) than machine language and lower (is more difficult to use but runs
faster) than a high-level language such as Basic, FORTRAN, or Java. Programs
written in assembly language are converted into machine language by specialized
programs called assemblers or compilers for their execution by the machine
(computer)”.
An assembly language is a low-level programming language for
microprocessors and other programmable devices. It is not just a single language,
but rather a group of languages. An assembly language implements a symbolic
representation of the machine code needed to program a given CPU architecture.
Assembly language is not low level language and not a high level language. It
is a combination of low – level and high level language. Assembly language is
difficult as compare to high –level language. There is a general impression that
assembly language programming is difficult and not everyone to understand it. The
reality is in contrast, as assembly language is a very simple subject. The wrong
impression is created because it is very difficult to realize that the real computer can
be so simple. Assembly language programming gives a freehand exposure to the
computer and lets the programmer talk with it in its language. The concepts of
assembly language that are common across all platforms will be developed in such a
manner as to emphasize the basic low level understanding of the computer instead
of the peculiarities of one particular architecture.
Q: NO 2: Why assembly language is necessary to learn?
Ans:
Then there is the question that why should we learn assembly language when
there are higher level languages one better than the other C, C++, Java, to name just
a few, with a neat programming environment and a simple way to write programs.
Consider a translator translating from English to Japanese. The problem faced by
the translator is that every language has its own vocabulary and grammar. He may
need to translate a word into a sentence and destroy the beauty of the topic.
Compiler is such a translator, just a lot dumber, and having a scarce number of
words in its target language, it is bound to produce a lot of garbage and
unnecessary stuff as a result of its ignorance of our program logic. In normal
programs such garbage is acceptable and the ease of programming overrides the
loss in efficiency but there are a few situations where this loss isunbearable.
Think about a four color picture scanned at 300 dots per inch making 90000
pixels per square inch. Now a processing on this picture requires 360000 operations
per square inch, one operation for each color of each pixel. A few extra instructions
placed by the translator can cost hours of extra time. The only way to optimize this is
to do it directly in assembly language. But this doesn’t mean that the whole
application has to be written in assembly language, which is almost never the case.
It’s only the performance critical part that is coded in assembly language to gain the
few extra cycles that matter at that point.
Q: NO 3: How we learn assembly language?
Ans:
In fact if you are not an expert, you will learn assembly language quickly, as
non-experts see things with simplicity and the basic beauty of assembly language is
that it is exceptionally simple. Do not ever try to find a complication, as one will not
be there. In assembly language, what is written in the program is all that is there, no
less and no more. After successful completion of this course, you will be able to
explain all the basic operations of the computer and in essence understand the
psychology of the computer.
Q: NO 4: Which are the applications of assembly language?
Ans:
• You can do anything in assembly that you could with a higher level language.
Assembly results in a faster and smaller code.
• It protects software execution against different types of attacks
• It is used for direct hardware manipulation
• With assembly you have access to specialized processor instructions
• It is handy if you want to address critical performance issues.
• It’s typical uses are in device drivers, low-level embedded systems, and real-
time systems.
• Today, assembly language is used primarily for direct hardware
manipulation, access to specialized processor instructions, or to address
critical performance issues. Typical uses are device drivers, low-level
embedded systems, and real-time systems.

More Related Content

What's hot

Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
Juhi Bhoyar
 
Programming language
Programming languageProgramming language
Programming language
RajThakuri
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Professor Lili Saghafi
 
Intro flash cards
Intro flash cardsIntro flash cards
Intro flash cardslorhow58
 
Intro flash cards
Intro flash cardsIntro flash cards
Intro flash cardslorhow58
 
computer languages
computer languagescomputer languages
computer languages
Rajendran
 
10 lesson8
10 lesson810 lesson8
10 lesson8
Mary Grace Uminga
 
Programming Language
Programming LanguageProgramming Language
Programming Language
Laukesh Jaishwal
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
SHUBHAM PATIDAR FISHERIES ADDAA
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
Arslan Hussain
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languageskitturashmikittu
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
adnan usmani
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppthashgeneration
 
INTRODUCTIONS OF HTML
INTRODUCTIONS OF HTMLINTRODUCTIONS OF HTML
INTRODUCTIONS OF HTML
SURYANARAYANBISWAL1
 
Fundamentals of programming final
Fundamentals of programming finalFundamentals of programming final
Fundamentals of programming final
Ricky Recto
 
Computer programming
Computer programmingComputer programming
Computer programming
wesleycatcher
 
Computer programming language concept
Computer programming language conceptComputer programming language concept
Computer programming language conceptAfiq Sajuri
 
Programming Language
Programming LanguageProgramming Language

What's hot (18)

Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
 
Programming language
Programming languageProgramming language
Programming language
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
 
Intro flash cards
Intro flash cardsIntro flash cards
Intro flash cards
 
Intro flash cards
Intro flash cardsIntro flash cards
Intro flash cards
 
computer languages
computer languagescomputer languages
computer languages
 
10 lesson8
10 lesson810 lesson8
10 lesson8
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languages
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppt
 
INTRODUCTIONS OF HTML
INTRODUCTIONS OF HTMLINTRODUCTIONS OF HTML
INTRODUCTIONS OF HTML
 
Fundamentals of programming final
Fundamentals of programming finalFundamentals of programming final
Fundamentals of programming final
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Computer programming language concept
Computer programming language conceptComputer programming language concept
Computer programming language concept
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 

Similar to what is assembly language by faisal shahzad

introduction to assembly language by Faisal Shehzad
introduction to assembly language by Faisal Shehzadintroduction to assembly language by Faisal Shehzad
introduction to assembly language by Faisal Shehzad
Faisal Shehzad
 
computer languages
computer languagescomputer languages
computer languages
Yasirali328
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming Language
Teddy Marcus
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
NaqashAhmad14
 
computer architecture and organization.ppt
computer architecture and organization.pptcomputer architecture and organization.ppt
computer architecture and organization.ppt
muhammadosama0121
 
Programming language
Programming languageProgramming language
Programming language
Shuja Qais
 
Introduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxIntroduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptx
MahamaHaruna
 
Computer language
Computer languageComputer language
Computer language
WASEEM ARSLAN
 
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
Muhammad Hammad Waseem
 
Programming language
Programming languageProgramming language
Programming language
Arpana Awasthi
 
What is a programming language.docx
What is a programming language.docxWhat is a programming language.docx
What is a programming language.docx
ssuser9846a6
 
Programming Language
Programming LanguageProgramming Language
Programming Language
Fahad Khan
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
Christ Association
 
Abstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworksAbstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworks
ijpla
 
Ppt 1
Ppt 1Ppt 1
Unit 1
Unit 1Unit 1
Unit 1
ankita1317
 
JAVA
JAVAJAVA
Program, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptxProgram, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptx
HariharPaudel1
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
Md. Rakibuzzaman Khan Pathan
 
English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
Villalba Griselda
 

Similar to what is assembly language by faisal shahzad (20)

introduction to assembly language by Faisal Shehzad
introduction to assembly language by Faisal Shehzadintroduction to assembly language by Faisal Shehzad
introduction to assembly language by Faisal Shehzad
 
computer languages
computer languagescomputer languages
computer languages
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming Language
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
computer architecture and organization.ppt
computer architecture and organization.pptcomputer architecture and organization.ppt
computer architecture and organization.ppt
 
Programming language
Programming languageProgramming language
Programming language
 
Introduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxIntroduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptx
 
Computer language
Computer languageComputer language
Computer language
 
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
 
Programming language
Programming languageProgramming language
Programming language
 
What is a programming language.docx
What is a programming language.docxWhat is a programming language.docx
What is a programming language.docx
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
Abstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworksAbstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworks
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Unit 1
Unit 1Unit 1
Unit 1
 
JAVA
JAVAJAVA
JAVA
 
Program, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptxProgram, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptx
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
 

Recently uploaded

The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 

Recently uploaded (20)

The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 

what is assembly language by faisal shahzad

  • 1. COMSATS INSTITUTE OF INFORMATION TECHNOLOGY VEHARI CAMPUS DEPARTMENT OF COMPUTER SCIENCE Subject Name: ASSEMBLY LANGUAGE Topic: “QUESTIONS ABOUT ASSEMBLY LANGUAGE” Submitted to: ENGR. MUHAMMAD ABDULLAH SB Submitted by: FAISAL SHEHZAD Roll: No: SP17-MCS-020 Section: MCS-B12-A Date of Submitting: 20TH SEPTEMBER 2017 Assign. No: 01
  • 2. Q: No 1: What is assembly language according to above reading material? Ans: Definition: “Intermediate-level programming language which is higher (is easier to use but runs slower) than machine language and lower (is more difficult to use but runs faster) than a high-level language such as Basic, FORTRAN, or Java. Programs written in assembly language are converted into machine language by specialized programs called assemblers or compilers for their execution by the machine (computer)”. An assembly language is a low-level programming language for microprocessors and other programmable devices. It is not just a single language, but rather a group of languages. An assembly language implements a symbolic representation of the machine code needed to program a given CPU architecture. Assembly language is not low level language and not a high level language. It is a combination of low – level and high level language. Assembly language is difficult as compare to high –level language. There is a general impression that assembly language programming is difficult and not everyone to understand it. The reality is in contrast, as assembly language is a very simple subject. The wrong impression is created because it is very difficult to realize that the real computer can be so simple. Assembly language programming gives a freehand exposure to the computer and lets the programmer talk with it in its language. The concepts of assembly language that are common across all platforms will be developed in such a manner as to emphasize the basic low level understanding of the computer instead of the peculiarities of one particular architecture. Q: NO 2: Why assembly language is necessary to learn? Ans: Then there is the question that why should we learn assembly language when there are higher level languages one better than the other C, C++, Java, to name just a few, with a neat programming environment and a simple way to write programs. Consider a translator translating from English to Japanese. The problem faced by the translator is that every language has its own vocabulary and grammar. He may need to translate a word into a sentence and destroy the beauty of the topic. Compiler is such a translator, just a lot dumber, and having a scarce number of words in its target language, it is bound to produce a lot of garbage and unnecessary stuff as a result of its ignorance of our program logic. In normal programs such garbage is acceptable and the ease of programming overrides the loss in efficiency but there are a few situations where this loss isunbearable.
  • 3. Think about a four color picture scanned at 300 dots per inch making 90000 pixels per square inch. Now a processing on this picture requires 360000 operations per square inch, one operation for each color of each pixel. A few extra instructions placed by the translator can cost hours of extra time. The only way to optimize this is to do it directly in assembly language. But this doesn’t mean that the whole application has to be written in assembly language, which is almost never the case. It’s only the performance critical part that is coded in assembly language to gain the few extra cycles that matter at that point. Q: NO 3: How we learn assembly language? Ans: In fact if you are not an expert, you will learn assembly language quickly, as non-experts see things with simplicity and the basic beauty of assembly language is that it is exceptionally simple. Do not ever try to find a complication, as one will not be there. In assembly language, what is written in the program is all that is there, no less and no more. After successful completion of this course, you will be able to explain all the basic operations of the computer and in essence understand the psychology of the computer. Q: NO 4: Which are the applications of assembly language? Ans: • You can do anything in assembly that you could with a higher level language. Assembly results in a faster and smaller code. • It protects software execution against different types of attacks • It is used for direct hardware manipulation • With assembly you have access to specialized processor instructions • It is handy if you want to address critical performance issues. • It’s typical uses are in device drivers, low-level embedded systems, and real- time systems. • Today, assembly language is used primarily for direct hardware manipulation, access to specialized processor instructions, or to address critical performance issues. Typical uses are device drivers, low-level embedded systems, and real-time systems.