You are on page 1of 15

Language Processors or Translators in

Programming and its types- Assembler,


Compiler and Interpreter

He who has imagination without learning has wings but not feet. Joseph Joubert
Assembles
❖ Assembler is a translator which is used to translate the
assembly language code into machine language code.
❖ Assembly language is a low level programming language
where we use the symbols called mnemonics in place of
machine codes.
❖ The assembler performs a one to one mapping from
mnemonic statement into machine codes and data.

❖ Language processor is also called a language translator.


Interpreter
Interpreter converts the source program written in high
level language into machine languages.
An interpreter converts each statement of the program
line by line into machine code.
It means an interpreter translates the one line at a time
into machine language and executes it. Then moves
towards the next line this goes on till the end of the
program. If no error encounters.
Compiler
The purpose of compiler is same as interpreter but unlike
interpreters which translate the source program line by
line, compiler are the translators, which translate the
entire program into machine codes.
If source program contain errors, the compiler highlights
a list of errors at the end of the execution of the
program. i.e. a compiler translates the whole program
before execution.
A compiler is a larger program and occupies more
memory space. It is costlier than interpreter.
Portability the ability of software to be transferred from one machine
or system to another.
Difference between Compiler and Interpreter
Compiler Interpreter
A compiler takes the whole program
Interpreter each line in translated or
as a single unit and compiles it at
converted one by one and executed
once
Program execution is very fast. Program execution is slow.

Compiler are good for a very long Interpreter is good for small
program programs.
Occupies more memory space Occupies less memory space
Example : Basic interpreter, Prolog
Example :C compiler, PASCAL interpreter, LISP, APL etc.
compiler, FORTRAN compiler etc
Antivirus Software
• Antivirus is protective software designed to defend your
computer against malicious software.

• Antivirus software also known as anti-malware, is a computer


program used to prevent, detect, and remove malware.
• It scans the files or folders and alerts the user when viruses
are found.
• Example: Notron, MacAfee, Pana, Kesper-sky, Avira, AVG.
• Click on link for details:
https://courses.lumenlearning.com/computerapps/chapter/rea
ding-utility-software/
Symptoms of Computer Virus:

•Your Computer is Slowing Down


•Unexpected Pop-up Windows Appearing
•Unwanted Programs Start Automatically
•Missing Files and Programs
•System Crashing
•Out of Storage Space
•Computer Malfunction
•Advertisements on Web Browser
•Files Turned into Shortcuts
How to Protect Your Computer from Viruses
1. Use Antivirus Software
2. Don’t Open Emails from Unfamiliar Users
3. Strengthen Your Internet Browser Security Settings
4. Keep Your Windows Up-to-Date
5. Don’t Install Cracked Software
6. Pay Attention to Your Downloaded Files
Prepared by
(Govinda Neupane)

You might also like