SlideShare a Scribd company logo
1 of 13
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

PCEP Module 1.pptx
PCEP Module 1.pptxPCEP Module 1.pptx
PCEP Module 1.pptx
zakariaHujale
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
RakibRahman19
 

Similar to Unit1 Part2 1.ppt (20)

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
 
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
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Recently uploaded (20)

Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 

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