Introduction to programming

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

compilers and interpreters
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
Types of software. Sonam Dema..
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
1 Chapter-01 Introduction to Computers and C++ Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Standard Grade Computing SYSTEM SOFTWARE CHAPTER 19.
Slide 1 Standard Grade Computing Studies Systems Software.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
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.
3/5/2009Computer software1 Introduction Computer System Hardware Software HW Kernel/OS API Application Programs SW.
Intermediate 2 Computing Unit 2 - Software Development Topic 2 - Software Development Languages and Environments.
1 3. Computing System Fundamentals 3.1 Language Translators.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Chapter 1 Introduction. Chapter 1 -- Introduction2  Def: Compiler --  a program that translates a program written in a language like Pascal, C, PL/I,
Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Lecture-8 Introduction to computer languages.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Compilers and Interpreters
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Programming Languages
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
3/5/2002e-business and Information Systems1 Introduction Computer System Hardware Software HW Kernel/OS API Application Programs SW.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Evolution and History of Programming Languages
Computer Systems Nat 5 Computing Science
Topic 2: Hardware and Software
Why don’t programmers have to program in machine code?
Assembler, Compiler, MIPS simulator
GCSE COMPUTER SCIENCE Computers 1.5 Assembly Language.
Programming Languages
High and low level languages
Component 1.6.
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Computer Programming.
Computer Systems Nat 5 Computing Science
CS101 Introduction to Computing Lecture 19 Programming Languages
A451 Theory – 7 Programming 7A, B - Algorithms.
Teaching Computing to GCSE
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
Translators & Facilities of Languages
Assembler, Compiler, Interpreter
Compiler Construction
Lesson Objectives Aims Key Words Compiler, interpreter, assembler
Programming.
Assembler, Compiler, Interpreter
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
ICT Programming Lesson 1:
The Purpose of this Course
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Chapter 1 Introduction.
1.3.7 High- and low-level languages and their translators
Programming language translators
Presentation transcript:

Introduction to programming Translating second and third generation languages

The need for translation Computers can only process data as zeros and ones, otherwise known as ‘machine code’. Therefore any programs NOT written in machine code needs to be translated. This means that all second and third generation programming languages need to be translated. ‘Source code’ is code written by the programmer and is converted into ‘Target code’ which is the machine code. Source code Translation Machine code © 2005 Bob Reeves, Dave Fogg/Hodder Murray

Methods of translation There are three types of translator: the assembler: converts assembly language (second generation) one assembly language instruction converts into one binary code. the interpreter: converts high-level (third generation) languages converts one statement of source code at a time the machine code is then executed. The compiler: converts the whole of the source code into machine code the complete program is then executed. © 2005 Bob Reeves, Dave Fogg/Hodder Murray

Interpreters Advantages Disadvantages It is easy to find bugs in code, as it works through the source code one statement at a time. It is particularly useful during the development process, as it allows the programmer to debug each line of code in sequence. Not much memory is needed, as it only translates small blocks of code in one go. Disadvantages Every time the code is run it will need to go through the translation process, so executing programs may be slower. If the program is run on another computer, the interpreter software will have to be installed. © 2005 Bob Reeves, Dave Fogg/Hodder Murray

Compilers Advantages Disadvantages Once the code is compiled, you never have to translate it again. The code can be used on another computer without the need for translation software. Current versions of compiler software contain line-by-line debugging tools. The program will execute quicker, as it does not need to be translated as it is being run. Disadvantages It is difficult to find the source of any errors. During the development phase, any changes made mean that the whole program must be re-compiled, which can take a lot of time. © 2005 Bob Reeves, Dave Fogg/Hodder Murray