SlideShare a Scribd company logo
Computer Languages
Bali Thorat
Types of Programming Languages
• Machine Languages
• Assembly Languages
• High Level Languages
Bali Thorat
Machine Languages
• A machine language consists of the numeric codes for the operations that a
particular computer can execute directly.
• The codes are strings of 0s and 1s, or binary digits (“bits”), which are
frequently converted both from and to hexadecimal (base 16) for human
viewing and modification.
• Machine language instructions typically use some bits to represent
operations, such as addition, and some to represent operands, or perhaps
the location of the next instruction.
• Machine language is difficult to read and write, since it does not resemble
conventional mathematical notation or human language, and its codes vary
from computer to computer.
Bali Thorat
Assembly language
• Assembly language is one level above machine language.
• It uses short mnemonic codes for instructions and allows the programmer to introduce
names for blocks of memory that hold data.
• One might thus write “add pay, total” instead of “0110101100101000” for an instruction
that adds two numbers.
• Assembly language is designed to be easily translated into machine language.
• Although blocks of data may be referred to by name instead of by their machine
addresses, assembly language does not provide more sophisticated means of organizing
complex information.
• Like machine language, assembly language requires detailed knowledge of
internal computer architecture.
• It is useful when such details are important, as in programming a computer to interact
with peripheral devices (printers, scanners, storage devices, and so forth).
Bali Thorat
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.
Bali Thorat
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.
Bali Thorat
Linker
• Linker is a computer program that links and merges various object
files together in order to make an executable file.
• All these files might have been compiled by separate assemblers.
• The major task of a linker is to search and locate referenced
module/routines in a program and to determine the memory location
where these codes will be loaded, making the program instruction to
have absolute references.
Bali Thorat
Loader
• Loader is a part of operating system and is responsible for loading
executable files into memory and execute them.
• It calculates the size of a program (instructions and data) and creates
memory space for it.
• It initializes various registers to initiate execution.
Bali Thorat
Interpreter
• An interpreter translates high-level language into low-level machine
language.
• 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.
Bali Thorat
Compiler
• Compiler, translates high-level language into low-level machine
language.
• 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.
• Compiler reads the whole program even if it encounters several
errors.
Bali Thorat
• User writes a program in C language (high-level language).
• The C compiler, compiles the program and translates it to assembly
program (low-level language).
• An assembler then translates the assembly program into machine code
(object).
• A linker tool is used to link all the parts of the program together for
execution (executable machine code).
• A loader loads all of them into memory and then the program is executed.
Bali Thorat

More Related Content

PDF
Computer generation and classification
PDF
6 input output devices
PDF
1 fundamentals of computer
PDF
1 fundamentals of computer system
PDF
8 operating system concept
PDF
5 computer memory
PDF
7 processor
PDF
2 windows operating system
Computer generation and classification
6 input output devices
1 fundamentals of computer
1 fundamentals of computer system
8 operating system concept
5 computer memory
7 processor
2 windows operating system

What's hot (19)

PPTX
Introduction to Computers Lecture # 11
PPTX
Computer Operating system
PPTX
Introduction to Computers Lecture # 5
PPTX
Introduction to Computers Lecture # 12
PPTX
Software languages and devices
PPTX
Introduction to Computers Lecture # 3
PPTX
Introduction to Computers Lecture # 8
PPT
The Deal
PDF
Introduction to Computer and Programming - Lecture 01
PPTX
Chapter 1 computers
PPT
Software and Hardwew
PPS
PPS
Computer basic
PDF
Computer Fundamentals & Intro to C Programming module i
PPTX
Bca i-fundamental of computer-u-2- application and system software
PPT
Chapter1 introduction to computer systems
PPTX
Organization of modern digital computers
PPTX
Computer system
Introduction to Computers Lecture # 11
Computer Operating system
Introduction to Computers Lecture # 5
Introduction to Computers Lecture # 12
Software languages and devices
Introduction to Computers Lecture # 3
Introduction to Computers Lecture # 8
The Deal
Introduction to Computer and Programming - Lecture 01
Chapter 1 computers
Software and Hardwew
Computer basic
Computer Fundamentals & Intro to C Programming module i
Bca i-fundamental of computer-u-2- application and system software
Chapter1 introduction to computer systems
Organization of modern digital computers
Computer system
Ad

Similar to 4 computer languages (20)

PPTX
Insight into progam execution ppt
PPTX
Computer Topic (Introduction to Programming).pptx
PPTX
Computer-charecteristics,types of languages,translators
PDF
2 Programming Language.pdf
PDF
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
PPTX
Intro to programming languages by 4.pptx
PPTX
Programming Fundamental Slide No.1
PPTX
C++ programming languages lectures
PPTX
Introduction_to_Programming.pptx
DOCX
Computer assignment for grade 9
PPTX
Programming Paradigm & Languages
PPTX
Programming Paradigm & Languages
PPTX
Language translators Of Programming in Computer science
PPT
SD & D High and low level languages
PPT
introduction computer programming languages
PPT
Computer languages 11
PPTX
Programming languages
PPSX
Ic lecture8
PDF
Languages in computer
PPT
Cmp104 lec 6 computer lang
Insight into progam execution ppt
Computer Topic (Introduction to Programming).pptx
Computer-charecteristics,types of languages,translators
2 Programming Language.pdf
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
Intro to programming languages by 4.pptx
Programming Fundamental Slide No.1
C++ programming languages lectures
Introduction_to_Programming.pptx
Computer assignment for grade 9
Programming Paradigm & Languages
Programming Paradigm & Languages
Language translators Of Programming in Computer science
SD & D High and low level languages
introduction computer programming languages
Computer languages 11
Programming languages
Ic lecture8
Languages in computer
Cmp104 lec 6 computer lang
Ad

More from BaliThorat1 (20)

PDF
Lec15 sfm
PDF
Lec14 multiview stereo
PPTX
Lec13 stereo converted
PDF
Lec12 epipolar
PPTX
Lec11 single view-converted
PDF
Lec10 alignment
PDF
Lec09 hough
PDF
Lec08 fitting
PDF
Algorithm and flowchart
PDF
6 cpu scheduling
PDF
5 process synchronization
PDF
4 threads
PDF
3 processes
PDF
2 os structure
PDF
1 intro and overview
PDF
Lec07 corner blob
PDF
Lec06 edge
PDF
Lec05 filter
PDF
Lec04 color
PDF
Lec03 light
Lec15 sfm
Lec14 multiview stereo
Lec13 stereo converted
Lec12 epipolar
Lec11 single view-converted
Lec10 alignment
Lec09 hough
Lec08 fitting
Algorithm and flowchart
6 cpu scheduling
5 process synchronization
4 threads
3 processes
2 os structure
1 intro and overview
Lec07 corner blob
Lec06 edge
Lec05 filter
Lec04 color
Lec03 light

Recently uploaded (20)

PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Insiders guide to clinical Medicine.pdf
PDF
Classroom Observation Tools for Teachers
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
master seminar digital applications in india
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Basic Mud Logging Guide for educational purpose
PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
Anesthesia in Laparoscopic Surgery in India
Insiders guide to clinical Medicine.pdf
Classroom Observation Tools for Teachers
TR - Agricultural Crops Production NC III.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
master seminar digital applications in india
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Pharma ospi slides which help in ospi learning
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Final Presentation General Medicine 03-08-2024.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Basic Mud Logging Guide for educational purpose
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Week 4 Term 3 Study Techniques revisited.pptx

4 computer languages

  • 2. Types of Programming Languages • Machine Languages • Assembly Languages • High Level Languages Bali Thorat
  • 3. Machine Languages • A machine language consists of the numeric codes for the operations that a particular computer can execute directly. • The codes are strings of 0s and 1s, or binary digits (“bits”), which are frequently converted both from and to hexadecimal (base 16) for human viewing and modification. • Machine language instructions typically use some bits to represent operations, such as addition, and some to represent operands, or perhaps the location of the next instruction. • Machine language is difficult to read and write, since it does not resemble conventional mathematical notation or human language, and its codes vary from computer to computer. Bali Thorat
  • 4. Assembly language • Assembly language is one level above machine language. • It uses short mnemonic codes for instructions and allows the programmer to introduce names for blocks of memory that hold data. • One might thus write “add pay, total” instead of “0110101100101000” for an instruction that adds two numbers. • Assembly language is designed to be easily translated into machine language. • Although blocks of data may be referred to by name instead of by their machine addresses, assembly language does not provide more sophisticated means of organizing complex information. • Like machine language, assembly language requires detailed knowledge of internal computer architecture. • It is useful when such details are important, as in programming a computer to interact with peripheral devices (printers, scanners, storage devices, and so forth). Bali Thorat
  • 5. 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. Bali Thorat
  • 6. 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. Bali Thorat
  • 7. Linker • Linker is a computer program that links and merges various object files together in order to make an executable file. • All these files might have been compiled by separate assemblers. • The major task of a linker is to search and locate referenced module/routines in a program and to determine the memory location where these codes will be loaded, making the program instruction to have absolute references. Bali Thorat
  • 8. Loader • Loader is a part of operating system and is responsible for loading executable files into memory and execute them. • It calculates the size of a program (instructions and data) and creates memory space for it. • It initializes various registers to initiate execution. Bali Thorat
  • 9. Interpreter • An interpreter translates high-level language into low-level machine language. • 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. Bali Thorat
  • 10. Compiler • Compiler, translates high-level language into low-level machine language. • 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. • Compiler reads the whole program even if it encounters several errors. Bali Thorat
  • 11. • User writes a program in C language (high-level language). • The C compiler, compiles the program and translates it to assembly program (low-level language). • An assembler then translates the assembly program into machine code (object). • A linker tool is used to link all the parts of the program together for execution (executable machine code). • A loader loads all of them into memory and then the program is executed. Bali Thorat