1.2 Language Processing Activities The fundamental language processing activities divided into two parts. 1. Program generation activities 2. Program execution.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

Stored Program Architecture
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
1  1998 Morgan Kaufmann Publishers We will be reusing functional units –ALU used to compute address and to increment PC –Memory used for instruction and.
Damian BrowneLuis PabonPedro Tovar The operation of a computer in executing a program consists of a sequence of Instruction Cycles, with one machine.
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
Systems Software.
System Programming Mr. M. V. Nikum (B.E.I.T). Introduction What is System? System is the collection of various components Ex:- College is a system What.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Introduction to Computer Systems
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
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.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
1.1 Introduction to Language Processor
Topic 1: Introduction to Computers and Programming
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
Database Management Systems (DBMS)
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,
KEY COMPONENTS OF A COMPUTER SYSTEM ANDREW LOLAVAR.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Lecture 3. Diff b/w RAM and Registers Registers are used to hold data immediately applicable to the operation at hand Registers are used to hold data.
Levels of Architecture & Language CHAPTER 1 © copyright Bobby Hoggard / material may not be redistributed without permission.
UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable.
Topic 1Topic 2Topic 3Topic 4Topic
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Engineering Rabie A. Ramadan Lecture 1. 2 Welcome Back.
J. Stover, CSD-HS.  A computer is an electronic device that is programmed to accept data (input), process it into useful information (output), and store.
Little Man Computer When your program gets “translated to machine code” all 0’s & 1’s The translator must know the language of the program (java) as well.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Fundamentals of Programming Languages-II
Compilers and Interpreters
Introduction to Computer Programming using Fortran 77.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Programming Languages
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
DDC 2223 SYSTEM SOFTWARE DDC2223 SYSTEM SOFTWARE.
Why don’t programmers have to program in machine code?
SYSTEM SOFTWARE & COMPILER DESIGN
Introduction to programming
Operating System Interface between a user and the computer hardware
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Overview Introduction General Register Organization Stack Organization
Micro-programmed Control Unit
An Introduction to Visual Basic .NET and Program Design
פרק 2: חיווט, זיכרונות בנקים זוגיים ואי-זוגיים
Translators & Facilities of Languages
Assembler, Compiler, Interpreter
Intro to Architecture & Organization
Introduction CSC 111.
von Neumann Architecture CPU
CMP 131 Introduction to Computer Programming
Assembler, Compiler, Interpreter
MARIE: An Introduction to a Simple Computer
Principles of Programming Languages
Program Execution.
What is Programming Language
A Top-Level View Of Computer Function And Interconnection
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Introduction to Computer Science
Presentation transcript:

1.2 Language Processing Activities The fundamental language processing activities divided into two parts. 1. Program generation activities 2. Program execution activities [Prog. Generation] [Prog. Execution] Specification Gap Execution Gap Application PL Execution Domain Domain Domain 1

Language Processing Activities A program generation activity aims to generation of a program. Source is the application domain and target is the PL domain. It bridges specification gap. A program execution activity aims to execute a program written in PL. source is PL domain and target is execution domain. It bridges execution gap. 2

1. Program Generation The program generator is a software system which accepts the specification of a program to be generated and generates program in a the target PL. This activity is done by program generator domain. Program Specification Program Specification Program Generator Program Generator Program in target PL Errors 3

1. Program Generation The generator domain is close to the application domain, it is easy for the designer or programmer to write the specification of the program to be generated. A program generator is software that enables an individual to create a program with less efforts and prog. Knowledge. A user may only be required to specify the step or rules required for the program and not need to write and code or less code. 4

2. Program Execution Two popular models for program execution are: 1.Program Translation 2.Program Interpretation 5

2.1 Program Translation The program translation model bridges the execution gap by translating a program written in a PL called source program(SP), into an equivalent program in the machine language called target program(TP) Source Program Source Program Translator Target Program Target Program Errors m/c language program m/c language program 6

2.1 Program Translation Characteristics of the program translation model are: A program must be translated before it can be executed. The translated program may be saved in file. The saved program may be executed repeatedly. A program must be retranslated following modifications. 7

2.2 Program Interpretation It reads the source program and stores it in its memory. During interpretation it takes a source statement, determines its meaning, and performs actions like computation and I/O which implement it. 8

2.2 Program Interpretation In the program interpretation, the CPU use a program counter(PC) to note the address of the next instruction to be executed. This instruction is subjected to the instruction execution cycle consisting following step: 1.Fetch the instruction 2.Decode the instruction to determine the operation to be performed. 3.Execute the instruction. 9

2.2 Program Interpretation At the end of the cycle. The PC is updated and the cycle is repeated for the next instruction. Thus, the PC can indicate which statement of the source program is to be interpreted next. PC Source Program + Data Source Program + Data Interpreter Errors PC M.L. Program + Data M.L. Program + Data CPU Memory 10

MCQ The _________ is a software system which generates a program in the target PL. A. Program Generator B. Program Specification C. Program Execution D. program Interpretation

MCQ The _________ is a software system which generates a program in the target PL. A. Program Generator B. Program Specification C. Program Execution D. program Interpretation

MCQ the CPU use ___________ to note the address of the next instruction to be executed. A. program counter(PC) B. Pretty printer C. static checker D. None

MCQ the CPU use ___________ to note the address of the next instruction to be executed. A. program counter(PC) B. Pretty printer C. static checker D. None

MCQ The Program generator _______ to convert _________ The _________ fetch, decode and execute instruction