SlideShare a Scribd company logo
PUNJAB COLLEGE PAKPATTAN
Computer Science Department
Prof. Muhammad Danish Adeel
Introduction To
Computer System
Introduction to Computer
Computer is an advanced electronic device that takes raw
data as input from the user and processes these data under
the control of set of instructions (called program) and gives
the result (output) and saves output for the future use.
A computer is a combination of hardware and
software resources which integrate together and provides
various functionalities to the user. Hardware are the physical
components of a computer like the processor, memory
devices, monitor, keyboard etc. while software is the set of
programs or instructions that are required by the hardware
resources to perform various operations as per the
requirement of users.
Introduction to Computer
Visit python4csip.com for more updates
EVOLUTION OF COMPUTING DEVICE
First Generation (1940-56):
The first generation computers used vacuum tubes &
machine language was used for giving the instructions. These
computers were large in size & their programming was difficult task.
The electricity consumption was very high.
In this generation, mainly batch processing
operating system was used. Punch cards, paper tape, and magnetic
tape was used as input and output devices. The computers in this
generation used machine code as the programming language.
Second Generation (1956-63):
In 2nd generation computers, vacuum tubes were replaced by
transistors. They required only 1/10 of power required by
tubes. This generation computers generated less heat & were
reliable. The first operating system developed in this
generation. IBM 1620, IBM 7094, CDC 1604 are the examples
of this generations computers.
In 2nd generation, magnetic cores were used
as the primary memory and magnetic tape and magnetic disks
assecondary storage devices.
In this generation, assembly language and high-level
programming languages like FORTRAN, COBOL were used. The
computers used batch processing and multiprogramming
operating system.
Third Generation (1964-71):
The 3rd generation computers replaced
transistors with Integrated circuit known as chip. From Small
scale integrated circuits which had 10 transistors per chip,
technology developed to MSI circuits with 100 transistors per
chip. These computers were smaller, faster & more reliable.
High level languages invented in this generation.
Fourth Generation (1972- 1980):
Fourth generation computers became
more powerful, compact, reliable, and affordable. As a result, it
gave rise to Personal Computer (PC) revolution. In this
generation, time sharing, real time networks, distributed
operating system were used. All the high-level languages like
C, C++, DBASE etc., were used in this generation.
Fifth Generation (1980-Present & Beyond):
Some computer types of this generation are −
Desktop
Laptop
Note Book
Ultra Book
COMPONENT S OFA COMPUTER SYSTEM
In the above diagram, both control (control unit or CU) and
arithmetic & logic unit (ALU) combinely called as Central
Processing Unit (CPU).
Let's describe about all the parts asincluded in the above
diagram one by one.
Central Processing Unit (CPU)
It is the brain of the computer system. All major calculation and
comparisons are made inside the CPU and it is also responsible
for activation and controlling the operation of other unit.
This unit consists of two major components, that are arithmetic
logic unit (ALU) and control unit (CU).
Arithmetic Logic Unit (ALU)
Arithmetic logic unit performs all arithmetic operations such as
addition, subtraction, multiplication and division. It also uses
logic operation for comparison like comparison or decision
making (>, <, <=, >=, = etc.).
Control Unit (CU)
The control unit of a CPU controls the entire operation of the
computer. It also controls all devices such as memory,
input/output devices connected to the CPU.
CU fetches instructions from memory, decodes the instruction,
interprets the instruction to know what the task are to be
performed and sends suitable control signals to the other
components to perform for the necessary steps to execute the
instruction.
Input/Output Unit
The input/output unit consists of devices used to transmit
information between the external world and computer
memory.
The information fed through the input unit is stored in
computer's memory for processing and the final result stored
in memory can be recorded or display on the output medium.
Primary Memory:
Primary memory has direct link with input unit and output
unit. It stores the input data, intermediate calculation, result.
Secondary Memory:
The primary storage is not able to store data permanently for
future use. So some other types of storage technology is
required to store the data permanently for long time, it is
called secondary or auxiliary memory.
Input & OutputDevice
Input Device:
Input devices are those devices which help to enter data into
computer system. E.g. Keyboad, Mouse, Touchscreen, Barcode
Reader, Scanner, MICR, OMR etc.
Bar Code Reader MICR used in Bank OMR
KEYBOARD: This is the most common input device which uses an
arrangement of buttons or keys. In a keyboard each press of a key
typically corresponds to a single written symbol. However somesymbols
require pressing and holding several keys simultaneously or in sequence.
While most keyboard keys produce letters, numbers or characters, other
keys or simultaneous key presses can produce actions or computer
commands.
Mouse:
A computer mouse (plural mice or mouses) is a hand- held
pointing device that detects two-dimensional motion relative
to a surface. This motion is typically translated into the motion
of a pointer on a display, which allows a smooth control of the
graphical user interface of a computer.
Scanner:
Scannerisadevicethat optically scans
images,printed text, handwriting, or an
object, and convertsit to digitalimage.
JOYSTICK:
Ajoystickisaninputdeviceconsistingof a stick
that pivots ona base and reports its angle or
direction to the deviceit iscontrolling.
Manypeopleusejoysticksoncomputergamesinvolving flight suchas
flight simulator.
Joysticksare often usedto controlvideo games,andusuallyhaveone
or morepush-buttonswhosestatecanalsobe read by the computer
Output Device:
Output devices are those devices which help to display the
processed information. Eg. Monitor, Printer, Plotter, Projector
etc.
PRINTER:
 Printerproducesresultonthe paper.
 There are various types of printersavailablein the market:
DOT MATRIX PRINTER:
 Usesribbonandhammertechnology.
 Itsqualityisnot verygood.It printsbymakingthe objectusing
smalldots.
INKJET PRINTER:
It creates a digital image by propelling
droplets of ink onto the paper.
LASERJET PRINTER:
They useslaser technology to print documents. It produce high quality
printing at very high speed.
MONITOR
 It is the primary output device where we
see the output. It looks like TV.
 It is also known asVDU(Visual Display Unit).
 Its display may be in the form of CRT
LED, LCD.
1. CRT(CATHODE RAY TUBE)
2. LCD(LIQUID CRYSTAL DISPLAY)
3. LED(LIGHT EMITTING DIODE)
MEMORY UNITS: Memory is used to store the data for later
reference. The smallest unit is bit, which mean either 0 or 1.
 1 bit = 0 or1
 1 Byte = 8bits
 1 Nibble = 4bits
 1 Kilo Byte = 1024 Byte= 210 Byte
 1 Mega Byte = 1024 KB= 210 KB
 1 Giga Byte = 1024 MB= 210MB
 1 Tera Byte = 1024 GB= 210 GB
 1 Peta Byte =1024 TB= 210 TB
 1 Exa Byte =1024 PB= 210 PB
 1 Zetta Byte = 1024 EB= 210 EB
 1 Yotta Byte = 1024 ZB= 210 ZB
PRIMARY MEMORY
SECONDARY MEMORY
The primary storage is not able to store data permanently for
future use. So some other types of storage technology is
required to store the data permanently for long time, it is
called secondary or auxiliary storage.
EXAMPLES OF SECONDARY STORAGE
DATA DELETION AND ITS RECOVERY ,
SECURITY CONCERN
You can conveniently delete personal data stored in computer
system, survey responses, tickets, and contacts, no matter
where the data originated.
Examples of reasons for deleting the data are:
 Freeing the disk space
 Removing duplicate or unnecessary data to avoid confusion
 Making sensitive information unavailable to others
 Removing an operating system or blanking a hard drive
DATA RECOVERY
 in computing, data recovery is a process of salvaging
(retrieving) inaccessible, lost, corrupted, damaged or
formatted data from secondary storage and removable
media or files, when the data stored in them cannot be
accessed in a normal way.
 The most common data recovery scenario involves an
operating system failure, malfunction of a storage device,
logical failure of storage devices, accidental damage or
deletion, etc. (typically, on a single-drive, single-partition,
single-OS system), in which case the ultimate goal is simply
to copy all important files from the damaged media to
another new drive.
COMPUTER SECURITY
 It is also known as IT security, is the protection of
information systems from theft or damage to the hardware,
the software, and to the information on them, as well as
from disruption or misdirection of the services they provide.
 It includes controlling physical access to the hardware, as
well as protecting against harm that may come via network
access, data and code injection, and due to malpractice by
operators, whether intentional, accidental, or due to them
being tricked into deviating from secure procedures.
CONCERNS OF COMPUTER SECURITY
Computer Security is concerned with four main areas:
1.Confidentiality:- Only authorized users can accessthe data resources
and information.
2. Integrity:- Only authorized users should be able to modify the data
when needed.
3. Availability:- Data should be available to users when needed.
SOFTWAREAND ITS TYPE
SOFTWARE: Software, simply are the computer programs. The
instructions given to the computer in the form of a program is
called Software. Software is the set of programs, which are
used for different purposes. All the programs used in computer
to perform specific task is called Software.
TYPESOF SOFTWARE
1. SYSTEM SOFTWARE
The system software is a collection of programs designed to
operate, control, and extend the processing capabilities of the
computer itself.
These software products comprise of programs
written in low-level languages, which interact with the
hardware at a very basic level. System software serves asthe
interface between the hardware and the end users.
Some examples of system software are Operating
System, Compilers, Interpreter, Assemblers, etc.
OPERATING SYSTEM
OPERATING SYSTEM ARCHITECTURE
LANGUAGE PROCESSOR
We generally write a computer program using a high-level
language. A high-level language is one that is understandable
by us, humans. This is called source code.
However, a computer does not understand
high-level language. It only understands the program written
in 0's and 1's in binary, called the machine code.
To convert source code into machine code, we use either a
compiler or an interpreter. Compiler, Interpreter are known as
language processor. Both compilers and interpreters are used
to convert a program written in a high-level language into
machine code understood by computers. However, there are
differences between how an interpreter and a compiler works.
Introduction to Computer System-ppt.pptx
Thank You

More Related Content

PPT
Logic gates
PPTX
Reading in the Philippine History.Group 2.pptx
PPTX
Introduction to ML (Machine Learning)
PPTX
The French revolution
PPTX
Periodic table
PPTX
Democratic rights
PPTX
Digital Technology
PPT
Physics: Potential and Kinetic Energy
Logic gates
Reading in the Philippine History.Group 2.pptx
Introduction to ML (Machine Learning)
The French revolution
Periodic table
Democratic rights
Digital Technology
Physics: Potential and Kinetic Energy

What's hot (20)

PPTX
Introduction to Computers
PPTX
PPTX
Major Functions of Computer Systems
PPTX
installing and optimizing operating system software
PPTX
Components of a computer system
PPTX
Introduction to computer
PPTX
Types and components of computer system
PPTX
The different components of a computer system
PPTX
Computer & it's components
PPTX
PPTX
Hardware & software
PPTX
Computer - Hardware components
PPTX
MALWARE
PDF
Basic CPU (Central Processing Unit)
PPTX
Lesson 1 computer safety and maintenance
PPTX
Storage
PPTX
Introduction to computer
PPTX
Common Computer Faults and Problems
PPTX
Installing windows 10 and creating a bootable usb
Introduction to Computers
Major Functions of Computer Systems
installing and optimizing operating system software
Components of a computer system
Introduction to computer
Types and components of computer system
The different components of a computer system
Computer & it's components
Hardware & software
Computer - Hardware components
MALWARE
Basic CPU (Central Processing Unit)
Lesson 1 computer safety and maintenance
Storage
Introduction to computer
Common Computer Faults and Problems
Installing windows 10 and creating a bootable usb
Ad

Similar to Introduction to Computer System-ppt.pptx (20)

PPTX
mix topic.pptx
PPTX
CH-1 Introduction to Computer System-ppt.pptx
PPTX
Introduction to Computer System-ppt-converted.pptx
PDF
Introduction to computer according to veta curicullum
PPTX
connecte hardware peripherals level 1.ppt.pptx
PPTX
Computer skills lessons number2 notes.pptx
PDF
CSC 101 and DCS 101.pdfsssggdjdubbkdkdddjf
PPTX
connecte hardware peripheralshh.ppt.pptx
PDF
Computer hardware and software an assignment
 
PPTX
Computer Based Presentation.pptx
PDF
PDF
DOCX
COMPUTER.docx
PPT
Chapter 2(answer)2
PPTX
Computer system, devices and peripherals
PPTX
Computer Systems for second school students notes
PPT
1. Week One Introduction to Computers 2023 PG Students Final.ppt
PPTX
1.3 computer system devices&peripherals
PDF
Computer capsule sbi_clerk
PPT
Lecture 1 2
mix topic.pptx
CH-1 Introduction to Computer System-ppt.pptx
Introduction to Computer System-ppt-converted.pptx
Introduction to computer according to veta curicullum
connecte hardware peripherals level 1.ppt.pptx
Computer skills lessons number2 notes.pptx
CSC 101 and DCS 101.pdfsssggdjdubbkdkdddjf
connecte hardware peripheralshh.ppt.pptx
Computer hardware and software an assignment
 
Computer Based Presentation.pptx
COMPUTER.docx
Chapter 2(answer)2
Computer system, devices and peripherals
Computer Systems for second school students notes
1. Week One Introduction to Computers 2023 PG Students Final.ppt
1.3 computer system devices&peripherals
Computer capsule sbi_clerk
Lecture 1 2
Ad

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Electronic commerce courselecture one. Pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation theory and applications.pdf
Machine learning based COVID-19 study performance prediction
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Electronic commerce courselecture one. Pdf
A Presentation on Artificial Intelligence
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Modernizing your data center with Dell and AMD
Review of recent advances in non-invasive hemoglobin estimation
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Reach Out and Touch Someone: Haptics and Empathic Computing
“AI and Expert System Decision Support & Business Intelligence Systems”

Introduction to Computer System-ppt.pptx

  • 1. PUNJAB COLLEGE PAKPATTAN Computer Science Department Prof. Muhammad Danish Adeel
  • 3. Introduction to Computer Computer is an advanced electronic device that takes raw data as input from the user and processes these data under the control of set of instructions (called program) and gives the result (output) and saves output for the future use. A computer is a combination of hardware and software resources which integrate together and provides various functionalities to the user. Hardware are the physical components of a computer like the processor, memory devices, monitor, keyboard etc. while software is the set of programs or instructions that are required by the hardware resources to perform various operations as per the requirement of users.
  • 4. Introduction to Computer Visit python4csip.com for more updates
  • 5. EVOLUTION OF COMPUTING DEVICE First Generation (1940-56): The first generation computers used vacuum tubes & machine language was used for giving the instructions. These computers were large in size & their programming was difficult task. The electricity consumption was very high. In this generation, mainly batch processing operating system was used. Punch cards, paper tape, and magnetic tape was used as input and output devices. The computers in this generation used machine code as the programming language.
  • 6. Second Generation (1956-63): In 2nd generation computers, vacuum tubes were replaced by transistors. They required only 1/10 of power required by tubes. This generation computers generated less heat & were reliable. The first operating system developed in this generation. IBM 1620, IBM 7094, CDC 1604 are the examples of this generations computers. In 2nd generation, magnetic cores were used as the primary memory and magnetic tape and magnetic disks assecondary storage devices. In this generation, assembly language and high-level programming languages like FORTRAN, COBOL were used. The computers used batch processing and multiprogramming operating system.
  • 7. Third Generation (1964-71): The 3rd generation computers replaced transistors with Integrated circuit known as chip. From Small scale integrated circuits which had 10 transistors per chip, technology developed to MSI circuits with 100 transistors per chip. These computers were smaller, faster & more reliable. High level languages invented in this generation.
  • 8. Fourth Generation (1972- 1980): Fourth generation computers became more powerful, compact, reliable, and affordable. As a result, it gave rise to Personal Computer (PC) revolution. In this generation, time sharing, real time networks, distributed operating system were used. All the high-level languages like C, C++, DBASE etc., were used in this generation.
  • 9. Fifth Generation (1980-Present & Beyond): Some computer types of this generation are − Desktop Laptop Note Book Ultra Book
  • 10. COMPONENT S OFA COMPUTER SYSTEM
  • 11. In the above diagram, both control (control unit or CU) and arithmetic & logic unit (ALU) combinely called as Central Processing Unit (CPU). Let's describe about all the parts asincluded in the above diagram one by one. Central Processing Unit (CPU) It is the brain of the computer system. All major calculation and comparisons are made inside the CPU and it is also responsible for activation and controlling the operation of other unit. This unit consists of two major components, that are arithmetic logic unit (ALU) and control unit (CU).
  • 12. Arithmetic Logic Unit (ALU) Arithmetic logic unit performs all arithmetic operations such as addition, subtraction, multiplication and division. It also uses logic operation for comparison like comparison or decision making (>, <, <=, >=, = etc.). Control Unit (CU) The control unit of a CPU controls the entire operation of the computer. It also controls all devices such as memory, input/output devices connected to the CPU. CU fetches instructions from memory, decodes the instruction, interprets the instruction to know what the task are to be performed and sends suitable control signals to the other components to perform for the necessary steps to execute the instruction.
  • 13. Input/Output Unit The input/output unit consists of devices used to transmit information between the external world and computer memory. The information fed through the input unit is stored in computer's memory for processing and the final result stored in memory can be recorded or display on the output medium.
  • 14. Primary Memory: Primary memory has direct link with input unit and output unit. It stores the input data, intermediate calculation, result. Secondary Memory: The primary storage is not able to store data permanently for future use. So some other types of storage technology is required to store the data permanently for long time, it is called secondary or auxiliary memory.
  • 15. Input & OutputDevice Input Device: Input devices are those devices which help to enter data into computer system. E.g. Keyboad, Mouse, Touchscreen, Barcode Reader, Scanner, MICR, OMR etc. Bar Code Reader MICR used in Bank OMR
  • 16. KEYBOARD: This is the most common input device which uses an arrangement of buttons or keys. In a keyboard each press of a key typically corresponds to a single written symbol. However somesymbols require pressing and holding several keys simultaneously or in sequence. While most keyboard keys produce letters, numbers or characters, other keys or simultaneous key presses can produce actions or computer commands.
  • 17. Mouse: A computer mouse (plural mice or mouses) is a hand- held pointing device that detects two-dimensional motion relative to a surface. This motion is typically translated into the motion of a pointer on a display, which allows a smooth control of the graphical user interface of a computer.
  • 18. Scanner: Scannerisadevicethat optically scans images,printed text, handwriting, or an object, and convertsit to digitalimage. JOYSTICK: Ajoystickisaninputdeviceconsistingof a stick that pivots ona base and reports its angle or direction to the deviceit iscontrolling. Manypeopleusejoysticksoncomputergamesinvolving flight suchas flight simulator. Joysticksare often usedto controlvideo games,andusuallyhaveone or morepush-buttonswhosestatecanalsobe read by the computer
  • 19. Output Device: Output devices are those devices which help to display the processed information. Eg. Monitor, Printer, Plotter, Projector etc.
  • 20. PRINTER:  Printerproducesresultonthe paper.  There are various types of printersavailablein the market: DOT MATRIX PRINTER:  Usesribbonandhammertechnology.  Itsqualityisnot verygood.It printsbymakingthe objectusing smalldots.
  • 21. INKJET PRINTER: It creates a digital image by propelling droplets of ink onto the paper. LASERJET PRINTER: They useslaser technology to print documents. It produce high quality printing at very high speed.
  • 22. MONITOR  It is the primary output device where we see the output. It looks like TV.  It is also known asVDU(Visual Display Unit).  Its display may be in the form of CRT LED, LCD. 1. CRT(CATHODE RAY TUBE) 2. LCD(LIQUID CRYSTAL DISPLAY) 3. LED(LIGHT EMITTING DIODE)
  • 23. MEMORY UNITS: Memory is used to store the data for later reference. The smallest unit is bit, which mean either 0 or 1.  1 bit = 0 or1  1 Byte = 8bits  1 Nibble = 4bits  1 Kilo Byte = 1024 Byte= 210 Byte  1 Mega Byte = 1024 KB= 210 KB  1 Giga Byte = 1024 MB= 210MB  1 Tera Byte = 1024 GB= 210 GB  1 Peta Byte =1024 TB= 210 TB  1 Exa Byte =1024 PB= 210 PB  1 Zetta Byte = 1024 EB= 210 EB  1 Yotta Byte = 1024 ZB= 210 ZB
  • 25. SECONDARY MEMORY The primary storage is not able to store data permanently for future use. So some other types of storage technology is required to store the data permanently for long time, it is called secondary or auxiliary storage. EXAMPLES OF SECONDARY STORAGE
  • 26. DATA DELETION AND ITS RECOVERY , SECURITY CONCERN You can conveniently delete personal data stored in computer system, survey responses, tickets, and contacts, no matter where the data originated. Examples of reasons for deleting the data are:  Freeing the disk space  Removing duplicate or unnecessary data to avoid confusion  Making sensitive information unavailable to others  Removing an operating system or blanking a hard drive
  • 27. DATA RECOVERY  in computing, data recovery is a process of salvaging (retrieving) inaccessible, lost, corrupted, damaged or formatted data from secondary storage and removable media or files, when the data stored in them cannot be accessed in a normal way.  The most common data recovery scenario involves an operating system failure, malfunction of a storage device, logical failure of storage devices, accidental damage or deletion, etc. (typically, on a single-drive, single-partition, single-OS system), in which case the ultimate goal is simply to copy all important files from the damaged media to another new drive.
  • 28. COMPUTER SECURITY  It is also known as IT security, is the protection of information systems from theft or damage to the hardware, the software, and to the information on them, as well as from disruption or misdirection of the services they provide.  It includes controlling physical access to the hardware, as well as protecting against harm that may come via network access, data and code injection, and due to malpractice by operators, whether intentional, accidental, or due to them being tricked into deviating from secure procedures.
  • 29. CONCERNS OF COMPUTER SECURITY Computer Security is concerned with four main areas: 1.Confidentiality:- Only authorized users can accessthe data resources and information. 2. Integrity:- Only authorized users should be able to modify the data when needed. 3. Availability:- Data should be available to users when needed.
  • 30. SOFTWAREAND ITS TYPE SOFTWARE: Software, simply are the computer programs. The instructions given to the computer in the form of a program is called Software. Software is the set of programs, which are used for different purposes. All the programs used in computer to perform specific task is called Software.
  • 32. 1. SYSTEM SOFTWARE The system software is a collection of programs designed to operate, control, and extend the processing capabilities of the computer itself. These software products comprise of programs written in low-level languages, which interact with the hardware at a very basic level. System software serves asthe interface between the hardware and the end users. Some examples of system software are Operating System, Compilers, Interpreter, Assemblers, etc.
  • 35. LANGUAGE PROCESSOR We generally write a computer program using a high-level language. A high-level language is one that is understandable by us, humans. This is called source code. However, a computer does not understand high-level language. It only understands the program written in 0's and 1's in binary, called the machine code. To convert source code into machine code, we use either a compiler or an interpreter. Compiler, Interpreter are known as language processor. Both compilers and interpreters are used to convert a program written in a high-level language into machine code understood by computers. However, there are differences between how an interpreter and a compiler works.