SlideShare a Scribd company logo
1
Orientation to Computing-I
L T P :2 0 0
www.lpu.in Lovely Professional University
Unit-1 (Computer Languages)
• Machine Language
• Assembly Language
• High Level Language
• Steps in development of a Program
• Compilation and Execution
• Compiler
• Interpreter
• Assembler
2
www.lpu.in Lovely Professional University
3
www.lpu.in Lovely Professional University
MACHINE LANGUAGE
• Machine language is a low-level language made up of binary numbers or
bits that a computer can understand.
• It is also known as machine code or object code and is extremely tough to
comprehend.
• The only language that the computer understands is machine language. All
programmes and programming languages, such as Swift and C++, produce
or run programmes in machine language before they are run on a
computer.
• When a specific task, even the smallest process executes, machine
language is transported to the system processor. Computers are only able
to understand binary data as they are digital devices.
4
www.lpu.in Lovely Professional University
MACHINE LANGUAGE
• Machine languages consist of strings of numbers ultimately reduced to
1's and 0's. The computer responds to these numbers by performing
different operations.
• Each computer can directly understand only one language—its own
machine language. With machine language a programmer can instruct a
computer to perform its most fundamental operations.
• Programs written in machine language are not portable, that is, they may
not be run on other computers with different machine languages.
• Machine language programs are easy for computers to understand, but,
for people, machine language programming is tedious work susceptible
to error.
5
www.lpu.in Lovely Professional University
ASSEMBLY LANGUAGE
• In computer programming, assembly language (or assembler language, or
symbolic machine code), is any low-level programming language with a very
strong correspondence between the instructions in the language and the
architecture's machine code instructions.
What does assembly code do?
• Assembly code is converted into executable machine code by a utility program
referred to as an assembler.
• The conversion process is referred to as assembly, as in assembling the source
code. The computational step when an assembler is processing a program is
called assembly time.
6
www.lpu.in Lovely Professional University
High Level Languages
• A HIGH-LEVEL LANGUAGE (HLL) is A programming language such as
C, FORTRAN, or pascal that enables a programmer to write programs that
are more or less independent of a particular type of computer.
• Such languages are considered high-level because they are closer to human
languages and further from machine languages
7
www.lpu.in Lovely Professional University
Steps in development
8
www.lpu.in Lovely Professional University
Work Flow
• U S E R W R I T E S A P R O G R A M I N C L A N G U A G E
( H I G H - L E V E L L A N G U A G E ) .
• T H E C C O M P I L E R , C O M P I L E S T H E P R O G R A M
A N D T R A N S L AT E S I T TO A S S E M B LY P R O G R A M
( L O W- L E V E L L A N G U A G E ) .
• A N A S S E M B L E R T H E N T R A N S L AT E S T H E
A S S E M B LY P R O G R A M I N TO M A C H I N E C O D E
( O B J E C T ) .
• A L I N K E R TO O L I S U S E D TO L I N K A L L T H E
PA RT S O F T H E P R O G R A M TO G E T H E R F O R
E X E C U T I O N ( E X E C U TA B L E M A C H I N E C O D E ) .
• A L O A D E R L O A D S A L L O F T H E M I N TO M E M O RY
A N D T H E N T H E P R O G R A M I S E X E C U T E D .
9
www.lpu.in Lovely Professional University
10
www.lpu.in Lovely Professional University
Compiler
• A compiler is a special program that translates a programming language's
source code into machine code, bytecode or another programming
language.
• The source code is typically written in a high-level, human-readable
language such as Java or C++.
11
www.lpu.in Lovely Professional University
Interpreter
• An interpreter, like a compiler, translates high-level
language into low-level machine language. The
difference lies in the way they read the source code or
input.
• A compiler reads the whole source code at once, creates
tokens, checks semantics, generates intermediate code,
executes the whole program and may involve many
passes.
• In contrast, an interpreter reads a statement from the
input, converts it to an intermediate code, executes it,
then takes the next statement in sequence. If an error
occurs, an interpreter stops execution and reports it.
whereas a compiler reads the whole program even if it
encounters several errors.
12
www.lpu.in Lovely Professional University
Assembler
• An assembler translates assembly language programs into machine code.
• The output of an assembler is called an object file, which contains a
combination of machine instructions as well as the data required to place
these instructions in memory.
• An assembler is a type of computer program that interprets software
programs written in assembly language into machine language, code and
instructions that can be executed by a computer.
• An assembler enables software and application developers to access,
operate and manage a computer's hardware architecture and components
13
www.lpu.in Lovely Professional University

More Related Content

Similar to Unit1 Part2 1.ppt

programming.pptx
programming.pptxprogramming.pptx
programming.pptx
DarianElmyra
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
SegezzBrian
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
VanessaBuensalida
 
PPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxPPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptx
rockstarr066gj
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
PmarkNorcio
 
Computer languages
Computer languagesComputer languages
Computer languages
AqdasNoor
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
Programming fundamentals presentation
Programming fundamentals presentationProgramming fundamentals presentation
Programming fundamentals presentation
HafsaRao1
 
Computer programming
Computer programmingComputer programming
Computer programming
Mohamed Asarudeen
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
Chewe Lulembo
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
MohammedMohammed578197
 
PCEP Module 1.pptx
PCEP Module 1.pptxPCEP Module 1.pptx
PCEP Module 1.pptx
zakariaHujale
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
BaliThorat1
 
Computer languages
Computer languagesComputer languages
Computer languages
Buxoo Abdullah
 
Programming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresProgramming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwares
Nisarg Amin
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
RakibRahman19
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptx
AryaDutta4
 
Computer languages
Computer languagesComputer languages
Computer languages
BESOR ACADEMY
 
Programming in C
Programming in CProgramming in C
Programming in C
Rvishnupriya2
 

Similar to Unit1 Part2 1.ppt (20)

programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
PPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxPPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptx
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
Programming fundamentals presentation
Programming fundamentals presentationProgramming fundamentals presentation
Programming fundamentals presentation
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
PCEP Module 1.pptx
PCEP Module 1.pptxPCEP Module 1.pptx
PCEP Module 1.pptx
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Programming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresProgramming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwares
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Programming in C
Programming in CProgramming in C
Programming in C
 

Recently uploaded

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 

Unit1 Part2 1.ppt

  • 1. 1 Orientation to Computing-I L T P :2 0 0 www.lpu.in Lovely Professional University
  • 2. Unit-1 (Computer Languages) • Machine Language • Assembly Language • High Level Language • Steps in development of a Program • Compilation and Execution • Compiler • Interpreter • Assembler 2 www.lpu.in Lovely Professional University
  • 3. 3 www.lpu.in Lovely Professional University MACHINE LANGUAGE • Machine language is a low-level language made up of binary numbers or bits that a computer can understand. • It is also known as machine code or object code and is extremely tough to comprehend. • The only language that the computer understands is machine language. All programmes and programming languages, such as Swift and C++, produce or run programmes in machine language before they are run on a computer. • When a specific task, even the smallest process executes, machine language is transported to the system processor. Computers are only able to understand binary data as they are digital devices.
  • 4. 4 www.lpu.in Lovely Professional University MACHINE LANGUAGE • Machine languages consist of strings of numbers ultimately reduced to 1's and 0's. The computer responds to these numbers by performing different operations. • Each computer can directly understand only one language—its own machine language. With machine language a programmer can instruct a computer to perform its most fundamental operations. • Programs written in machine language are not portable, that is, they may not be run on other computers with different machine languages. • Machine language programs are easy for computers to understand, but, for people, machine language programming is tedious work susceptible to error.
  • 5. 5 www.lpu.in Lovely Professional University ASSEMBLY LANGUAGE • In computer programming, assembly language (or assembler language, or symbolic machine code), is any low-level programming language with a very strong correspondence between the instructions in the language and the architecture's machine code instructions. What does assembly code do? • Assembly code is converted into executable machine code by a utility program referred to as an assembler. • The conversion process is referred to as assembly, as in assembling the source code. The computational step when an assembler is processing a program is called assembly time.
  • 7. High Level Languages • A HIGH-LEVEL LANGUAGE (HLL) is A programming language such as C, FORTRAN, or pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. • Such languages are considered high-level because they are closer to human languages and further from machine languages 7 www.lpu.in Lovely Professional University
  • 8. Steps in development 8 www.lpu.in Lovely Professional University
  • 9. Work Flow • U S E R W R I T E S A P R O G R A M I N C L A N G U A G E ( H I G H - L E V E L L A N G U A G E ) . • T H E C C O M P I L E R , C O M P I L E S T H E P R O G R A M A N D T R A N S L AT E S I T TO A S S E M B LY P R O G R A M ( L O W- L E V E L L A N G U A G E ) . • A N A S S E M B L E R T H E N T R A N S L AT E S T H E A S S E M B LY P R O G R A M I N TO M A C H I N E C O D E ( O B J E C T ) . • A L I N K E R TO O L I S U S E D TO L I N K A L L T H E PA RT S O F T H E P R O G R A M TO G E T H E R F O R E X E C U T I O N ( E X E C U TA B L E M A C H I N E C O D E ) . • A L O A D E R L O A D S A L L O F T H E M I N TO M E M O RY A N D T H E N T H E P R O G R A M I S E X E C U T E D . 9 www.lpu.in Lovely Professional University
  • 11. Compiler • A compiler is a special program that translates a programming language's source code into machine code, bytecode or another programming language. • The source code is typically written in a high-level, human-readable language such as Java or C++. 11 www.lpu.in Lovely Professional University
  • 12. Interpreter • An interpreter, like a compiler, translates high-level language into low-level machine language. The difference lies in the way they read the source code or input. • A compiler reads the whole source code at once, creates tokens, checks semantics, generates intermediate code, executes the whole program and may involve many passes. • In contrast, an interpreter reads a statement from the input, converts it to an intermediate code, executes it, then takes the next statement in sequence. If an error occurs, an interpreter stops execution and reports it. whereas a compiler reads the whole program even if it encounters several errors. 12 www.lpu.in Lovely Professional University
  • 13. Assembler • An assembler translates assembly language programs into machine code. • The output of an assembler is called an object file, which contains a combination of machine instructions as well as the data required to place these instructions in memory. • An assembler is a type of computer program that interprets software programs written in assembly language into machine language, code and instructions that can be executed by a computer. • An assembler enables software and application developers to access, operate and manage a computer's hardware architecture and components 13 www.lpu.in Lovely Professional University