SlideShare a Scribd company logo
PROGRAMMING LANGUAGES
MACHINE CODE
• Program code in binary is known as machine code.
• First Generation of Programming Language.
• Processor specific
1st Generation Machine Code Binary
100100010111
ASSEMBLY LANGUAGE
• Second Generation
• Processor specific
• Many different assembly languages depending on processor
architecture
2nd Generation Assembly Language Mnemonics
LOAD #39
ADD &FD3
STORE &32D
HIGH LEVEL LANGUAGE
• Human readable
• 3rd Generation
• Lots of languages suitable for different problems
• Portable
3rd Generation High Level Language Statements
age=10;
sum=number1*numb
er2
COMPARING HIGH LEVEL AND MACHINE
LANGUAGE
Machine Code High Level Languages
Processor specific: will work only
with the same processor
architecture
Portable: hardware or processor
independent
Designed with hardware in mind Designed with a type of problem
in mind
One to one relationship with
machine code and assembly
One high level program
instruction will be translated to
several machine code instructions
No translated were needed Need translators to convert to
machine code
Faster than high level languages
and efficient
Slow compared to machine code
WE HAVE A PROBLEM NOW …
How communicate with hardware with high level languages …
TRANSLATORS
• A type of system software.
• There are three types of translators
• Assembler
• Compiler
• Interpreter
High level
Assembly code
Machine code
Compiler or
interpreter
Assembler
ASSEMBLER
• Converts assembly language into machine code.
• Simple conversion as every assembly instruction is translated into one single
machine code.
COMPILER AND INTERPRETER
• Convert high level language into machine code.
• Complex translation as single high level code may result in
many machine code instructions.
COMPILER
• Converts high level language into machine language
• Compiled version does not need source code or compiler to run the
program
• Code can be distributed to customer easily without giving the
valuable source code
Source code Compiler Object Code
• Software problems in the object code is difficult to diagnose
TRANSLATOR
• Translates and execute one line at a time
• Uses less memory than a compiler
• No object code is produced
• Programs run much slower as every line has to be translated
COMPARE COMPILER AND INTERPRETER
Compiler Interpreter
Translates whole program once
and produce object code
Translates line by line at a time
Faster run time as the program is
already in machine code
Slower run time as lines have to be
translated before execution
Customers cannot see the source
code
If distributed customers can see
the actual code
Used for distributed software Used in development

More Related Content

PDF
Chap08 Getting Started with C (ICS12).pdf
PPTX
Computer Science guide to C Unit-I Translator.pptx
PPTX
History of languages'
PPTX
History of languages'
PPTX
Programming Languages / Translators
PPTX
Programming languages,compiler,interpreter,softwares
PDF
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
PDF
a1.pptx.pdf
Chap08 Getting Started with C (ICS12).pdf
Computer Science guide to C Unit-I Translator.pptx
History of languages'
History of languages'
Programming Languages / Translators
Programming languages,compiler,interpreter,softwares
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
a1.pptx.pdf

Similar to Programming Languages (20)

PDF
Programming Languages
PPTX
Life cycle of a computer program
PPTX
Introduction to Compilers
PPTX
basic programming introduction about java
PPTX
Assembly and Machine Code
PPTX
Computer languages
PPT
Introduction to C for Btech 1st year.ppt
PPT
Lahor main It revoloution anfd its uses.
PPT
basics of it in pakistan and all over the
PPTX
Lesson 2.pptx
PPTX
Lec 1 Compiler Construction (CC) CC.pptx
PPTX
Computer language
PPTX
computer programming and hardware technique
PPT
Session01 basics programming
PPTX
Agro informatics centre up State of Lec 6.pptx
PPT
introduction to computer programming and its examples
PPT
presentation of Programing fundamental.
PPT
Introduction Computer programming and operating system
PPTX
CD module 1.pptx Introduction to compiler Design
PPTX
Compiler constuction lec 1 ( features of compiler and types of compiler).pptx
Programming Languages
Life cycle of a computer program
Introduction to Compilers
basic programming introduction about java
Assembly and Machine Code
Computer languages
Introduction to C for Btech 1st year.ppt
Lahor main It revoloution anfd its uses.
basics of it in pakistan and all over the
Lesson 2.pptx
Lec 1 Compiler Construction (CC) CC.pptx
Computer language
computer programming and hardware technique
Session01 basics programming
Agro informatics centre up State of Lec 6.pptx
introduction to computer programming and its examples
presentation of Programing fundamental.
Introduction Computer programming and operating system
CD module 1.pptx Introduction to compiler Design
Compiler constuction lec 1 ( features of compiler and types of compiler).pptx

More from Sajitha Pathirana (12)

PPSX
Basics of Java.ppsx
PPTX
PPTX
PPTX
Handling Data in Algorithm
PPTX
PPTX
Pseudocode
PPTX
Communications and Networking
PPTX
PPTX
Logical Operators
PPTX
Data Representation in Computers
PPTX
Fundamentals of computer systems
PPTX
Flow Charts
Basics of Java.ppsx
Handling Data in Algorithm
Pseudocode
Communications and Networking
Logical Operators
Data Representation in Computers
Fundamentals of computer systems
Flow Charts

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
medical staffing services at VALiNTRY
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
L1 - Introduction to python Backend.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
ai tools demonstartion for schools and inter college
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
System and Network Administration Chapter 2
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
top salesforce developer skills in 2025.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Navsoft: AI-Powered Business Solutions & Custom Software Development
Design an Analysis of Algorithms I-SECS-1021-03
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
CHAPTER 2 - PM Management and IT Context
medical staffing services at VALiNTRY
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
L1 - Introduction to python Backend.pptx
Understanding Forklifts - TECH EHS Solution
ai tools demonstartion for schools and inter college
Odoo POS Development Services by CandidRoot Solutions
System and Network Administration Chapter 2
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PTS Company Brochure 2025 (1).pdf.......
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
top salesforce developer skills in 2025.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Operating system designcfffgfgggggggvggggggggg
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...

Programming Languages

  • 2. MACHINE CODE • Program code in binary is known as machine code. • First Generation of Programming Language. • Processor specific 1st Generation Machine Code Binary 100100010111
  • 3. ASSEMBLY LANGUAGE • Second Generation • Processor specific • Many different assembly languages depending on processor architecture 2nd Generation Assembly Language Mnemonics LOAD #39 ADD &FD3 STORE &32D
  • 4. HIGH LEVEL LANGUAGE • Human readable • 3rd Generation • Lots of languages suitable for different problems • Portable 3rd Generation High Level Language Statements age=10; sum=number1*numb er2
  • 5. COMPARING HIGH LEVEL AND MACHINE LANGUAGE Machine Code High Level Languages Processor specific: will work only with the same processor architecture Portable: hardware or processor independent Designed with hardware in mind Designed with a type of problem in mind One to one relationship with machine code and assembly One high level program instruction will be translated to several machine code instructions No translated were needed Need translators to convert to machine code Faster than high level languages and efficient Slow compared to machine code
  • 6. WE HAVE A PROBLEM NOW … How communicate with hardware with high level languages …
  • 7. TRANSLATORS • A type of system software. • There are three types of translators • Assembler • Compiler • Interpreter High level Assembly code Machine code Compiler or interpreter Assembler
  • 8. ASSEMBLER • Converts assembly language into machine code. • Simple conversion as every assembly instruction is translated into one single machine code.
  • 9. COMPILER AND INTERPRETER • Convert high level language into machine code. • Complex translation as single high level code may result in many machine code instructions.
  • 10. COMPILER • Converts high level language into machine language • Compiled version does not need source code or compiler to run the program • Code can be distributed to customer easily without giving the valuable source code Source code Compiler Object Code • Software problems in the object code is difficult to diagnose
  • 11. TRANSLATOR • Translates and execute one line at a time • Uses less memory than a compiler • No object code is produced • Programs run much slower as every line has to be translated
  • 12. COMPARE COMPILER AND INTERPRETER Compiler Interpreter Translates whole program once and produce object code Translates line by line at a time Faster run time as the program is already in machine code Slower run time as lines have to be translated before execution Customers cannot see the source code If distributed customers can see the actual code Used for distributed software Used in development