SlideShare a Scribd company logo
Programming
Languages
Language
 A system of communication.
Computer Language
 Means of communication used to
communicate between people and the
computer.
Difference between natural
language and computer language
 Natural language has a very large
vocabulary whereas computer
languages mostly have a very limited
vocabulary.
Classification of Computer
Languages
Computer Languages
Machine Language Assembly Language High Level Language
Machine Language
 Fundamental language understood
by computer.
 Also known as Machine Code.
 Written as strings of binary 0’s and 1’s.
 No translation program is required.
 Not really easy to learn.
Instruction Format
 Instruction prepared in machine language
has 2 parts
 Operation Code: Specifies operation to
be performed.
 Operand: specifies address of
operand.
Opcode Operand
(Operation Code) (Address)
Advantages of Machine
Language
 Programs written in machine language
are very fast to execute as
instructions written in Machine
language are directly understood by
CPU and no translation program is
required.
Limitations of Machine
Language
 Machine dependent.
 Difficult to program
 Error prone.
Assembly Language
 To simplify the program writing
process used in machine language,
the numeric operation codes of
Machine language were substituted by
letter symbols(Mnemonics).
Mnemonics
 It is any kind of mental trick we use to
help us remember.
 For example: machine code of 111
can be interpreted as subtract but it is
still easier for us to remember it as
SUB.
Addition of two numbers
 Machine Language
0001100100
…………
…………
…………
…………..
 Assembly
Language
CLA A
ADD B
STA C
TYP C
HLT
Assembly Language
 The language which substitutes letters
and symbols for the numbers in the
machine language program is called
an ASSEMBLY LANGUAGE or
SYMBOLIC LANGUAGE.
Assembler
 The translator program that translates an
assembly code into machine code is
called an Assembler.
Assembly
Language Program
(Source Program)
Assembler
Machine Language
Program
(Object Program)
Advantages of Assembly Language over
Machine Language
 Easier to understand and use.
 Easy to locate and correct errors.
 Easier to modify.
 No worry about addresses.
Limitations of Assembly
Language
 Machine dependent.
 Knowledge of hardware required.
Machine and Assembly Languages
being machine dependent are called
as Low Level Languages.
High Level Language(HLL)
 High level languages instead of being machine
based are oriented more towards the problem to be
solved.
 HLL are basically symbolic languages that use
English words and/or mathematical symbols rather
than Mnemonic codes.
 HLL are known as Problem Oriented Languages.
 Every instruction written in HLL is translated into
many machine language instructions. This is one to
many translation whereas in Assembly Language
there is one to one translation.
Compiler
 The translator program that translates the
instructions of HLL into Machine Language
is called Compiler.
High Level
Language Program
(Source Program)
Compiler
Machine Language
Program
(Object Program)
Interpreter
 An Interpreter is a type of translator used for translating HLL into
Machine Code.
 It takes one statement of HLL and translates it into a Machine
instruction which is immediately executed.
High Level
Language Program
(Source Program)
Interpreter
Machine Language
Program
(Object Program)
Difference between Interpreter
and a Compiler
 In case of Compiler, whole source program is translated into
equivalent machine language program. The object code thus
obtained is permanently saved for future use. So, repeated
compilation is not necessary whereas in Interpreter no object
code is saved because translation and execution process
alternate.
 Advantage of an Interpreter over Compiler is that it
responses fast to changes in source program.
 Interpreters are easy to write and do not require large
memory space.
 Disadvantage of interpreter over compiler is that interpreter
is a time consuming translation method because each
statement must be translated every time it is executed from
source program.
 Assemblers, Interpreters and
Compilers are System Software that
translate a source program into object
program and are known as Language
Processors.
Advantages of High Level
Languages
 Machine independent.
 Easy to learn and use.
 Fewer errors.
 Easier to maintain.
Thank you

More Related Content

Similar to 4programming-languages.ppt

Computer languages
Computer languagesComputer languages
Computer languages
Buxoo Abdullah
 
Computer programming
Computer programmingComputer programming
Computer programmingSuneel Dogra
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
Keval Goyani
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
raksharao
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
SHUBHAM PATIDAR FISHERIES ADDAA
 
rajeshppt-141119011256-conversion-gate01 (1).pdf
rajeshppt-141119011256-conversion-gate01 (1).pdfrajeshppt-141119011256-conversion-gate01 (1).pdf
rajeshppt-141119011256-conversion-gate01 (1).pdf
SunnukhazisSunnu
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
Sudhaa Ravi
 
Abstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworksAbstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworks
ijpla
 
Computer language
Computer languageComputer language
Computer language
WASEEM ARSLAN
 
BS1 lec7.pptx
BS1 lec7.pptxBS1 lec7.pptx
BS1 lec7.pptx
HiraImtiaz18
 
week 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxweek 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptx
nuruddinnnaim
 
Programming language
Programming languageProgramming language
Programming language
RajThakuri
 
Computer languages
Computer languagesComputer languages
Computer languages
BESOR ACADEMY
 
Ppt 1
Ppt 1Ppt 1
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
Christ Association
 

Similar to 4programming-languages.ppt (20)

Computer languages
Computer languagesComputer languages
Computer languages
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
 
Rajesh ppt
Rajesh pptRajesh ppt
Rajesh ppt
 
rajeshppt-141119011256-conversion-gate01 (1).pdf
rajeshppt-141119011256-conversion-gate01 (1).pdfrajeshppt-141119011256-conversion-gate01 (1).pdf
rajeshppt-141119011256-conversion-gate01 (1).pdf
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
 
Abstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworksAbstraction level taxonomy of programming language frameworks
Abstraction level taxonomy of programming language frameworks
 
Computer language
Computer languageComputer language
Computer language
 
BS1 lec7.pptx
BS1 lec7.pptxBS1 lec7.pptx
BS1 lec7.pptx
 
week 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxweek 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptx
 
Lession 6
Lession 6Lession 6
Lession 6
 
Programming language
Programming languageProgramming language
Programming language
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 

Recently uploaded

JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 

Recently uploaded (20)

JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 

4programming-languages.ppt

  • 2. Language  A system of communication.
  • 3. Computer Language  Means of communication used to communicate between people and the computer.
  • 4. Difference between natural language and computer language  Natural language has a very large vocabulary whereas computer languages mostly have a very limited vocabulary.
  • 5. Classification of Computer Languages Computer Languages Machine Language Assembly Language High Level Language
  • 6. Machine Language  Fundamental language understood by computer.  Also known as Machine Code.  Written as strings of binary 0’s and 1’s.  No translation program is required.  Not really easy to learn.
  • 7. Instruction Format  Instruction prepared in machine language has 2 parts  Operation Code: Specifies operation to be performed.  Operand: specifies address of operand. Opcode Operand (Operation Code) (Address)
  • 8. Advantages of Machine Language  Programs written in machine language are very fast to execute as instructions written in Machine language are directly understood by CPU and no translation program is required.
  • 9. Limitations of Machine Language  Machine dependent.  Difficult to program  Error prone.
  • 10. Assembly Language  To simplify the program writing process used in machine language, the numeric operation codes of Machine language were substituted by letter symbols(Mnemonics).
  • 11. Mnemonics  It is any kind of mental trick we use to help us remember.  For example: machine code of 111 can be interpreted as subtract but it is still easier for us to remember it as SUB.
  • 12. Addition of two numbers  Machine Language 0001100100 ………… ………… ………… …………..  Assembly Language CLA A ADD B STA C TYP C HLT
  • 13. Assembly Language  The language which substitutes letters and symbols for the numbers in the machine language program is called an ASSEMBLY LANGUAGE or SYMBOLIC LANGUAGE.
  • 14. Assembler  The translator program that translates an assembly code into machine code is called an Assembler. Assembly Language Program (Source Program) Assembler Machine Language Program (Object Program)
  • 15. Advantages of Assembly Language over Machine Language  Easier to understand and use.  Easy to locate and correct errors.  Easier to modify.  No worry about addresses.
  • 16. Limitations of Assembly Language  Machine dependent.  Knowledge of hardware required. Machine and Assembly Languages being machine dependent are called as Low Level Languages.
  • 17. High Level Language(HLL)  High level languages instead of being machine based are oriented more towards the problem to be solved.  HLL are basically symbolic languages that use English words and/or mathematical symbols rather than Mnemonic codes.  HLL are known as Problem Oriented Languages.  Every instruction written in HLL is translated into many machine language instructions. This is one to many translation whereas in Assembly Language there is one to one translation.
  • 18. Compiler  The translator program that translates the instructions of HLL into Machine Language is called Compiler. High Level Language Program (Source Program) Compiler Machine Language Program (Object Program)
  • 19. Interpreter  An Interpreter is a type of translator used for translating HLL into Machine Code.  It takes one statement of HLL and translates it into a Machine instruction which is immediately executed. High Level Language Program (Source Program) Interpreter Machine Language Program (Object Program)
  • 20. Difference between Interpreter and a Compiler  In case of Compiler, whole source program is translated into equivalent machine language program. The object code thus obtained is permanently saved for future use. So, repeated compilation is not necessary whereas in Interpreter no object code is saved because translation and execution process alternate.  Advantage of an Interpreter over Compiler is that it responses fast to changes in source program.  Interpreters are easy to write and do not require large memory space.  Disadvantage of interpreter over compiler is that interpreter is a time consuming translation method because each statement must be translated every time it is executed from source program.
  • 21.  Assemblers, Interpreters and Compilers are System Software that translate a source program into object program and are known as Language Processors.
  • 22. Advantages of High Level Languages  Machine independent.  Easy to learn and use.  Fewer errors.  Easier to maintain.