Programming Languages

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
1.2 Language Processing Activities The fundamental language processing activities divided into two parts. 1. Program generation activities 2. Program execution.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
ENGR. SHOAIB ASLAM Computer Programming I Lecture 02.
1 Chapter-01 Introduction to Computers and C++ Programming.
Course Introduction C++ An Introduction to Computing.
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
Slide 1 Standard Grade Computing Studies Systems Software.
Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
A language which is acceptable to a computer system is called a computer language or programming language and the process of writing instructions in such.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
PROGRAMMING LANGUAGES
1 Computer Architecture Part II-B: CPU Instruction Set.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
Intermediate 2 Computing Unit 2 - Software Development Topic 2 - Software Development Languages and Environments.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Processor Fundamentals Assembly Language. Learning Objectives Show understanding of the relationship between assembly language and machine code, including.
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
Lecture-8 Introduction to computer languages.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Introduction to computer programming
Software Engineering Algorithms, Compilers, & Lifecycle.
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
1 What we want: execute High Level Language (HLL) programs What we have: computer hardware (a glorified calculator)
Computer Language
Evolution and History of Programming Languages
Computer Basics.
Computer Systems Nat 5 Computing Science
GCSE COMPUTER SCIENCE Computers 1.5 Assembly Language.
Topic: Programming Languages and their Evolution + Intro to Scratch
High and low level languages
Programming Languages
Introduction to programming
Operating System Interface between a user and the computer hardware
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Computer Programming.
Computer Systems Nat 5 Computing Science
Chapter 3 Machine Language and Assembly Language.
Chapter 3 Machine Language and Assembly Language.
Teaching Computing to GCSE
Unit# 8: Introduction to Computer Programming
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
Translators & Facilities of Languages
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Computer Programming Machine and Assembly.
Lesson Objectives Aims Key Words Compiler, interpreter, assembler
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Tuesday, 15 January 2019.
Overview of Computer Architecture and Organization
Programming Languages
Processor Fundamentals
Understand the interaction between computer hardware and software
An Introduction to Programming with C++ Fifth Edition
Chapter 6 Programming the basic computer
1.3.7 High- and low-level languages and their translators
Presentation transcript:

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

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 Opcode Operand (Operation Code) (Address) Instruction prepared in machine language has 2 parts Operation Code: Specifies operation to be performed. Operand: specifies address of operand.

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