There are different types of translator.

Slides:



Advertisements
Similar presentations
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Advertisements

Introduction to Computer Systems
Computer Parts There are many parts that work together to make a computer work.
CPU Describe the purpose of the CPU
Parts of a Computer.
Systems Software Operating Systems.
The Operating System. Operating Systems (F) What you need to know about –operating system as a program; –directory/folder.
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Flash Cards Computer Technology.
Chapter 3 Computer Hard ware
Slide 1 System Software Software The term that we use for all the programs and data that we use with a computer system. Two types of software: Program.
Systems Software & Operating systems
Software Computer Systems Standard Grade Computing Studies Clydebank HIGH SCHOOL Computing Department.
There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
Computer Processing of Data
Operating Systems. Operating System  A program running in a computer from the moment it is switched on.  Part of the Systems Software of the computer.
Standard Grade Computing System Software & Operating Systems.
CHAPTER FOUR COMPUTER SOFTWARE.
Standard Grade Computing OPERATING SYSTEMS CHAPTER 20.
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
Computer Components Checklist There are many parts that work together to make a computer work.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Computer Architecture
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
Parts of the Computer System
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
COMPUTER Structure Int 2 Unit 1 – Computer Systems St Kentigern’s Academy.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Click once to reveal the definition. Think of the answer. Then click to see if you were correct. HARDWARE Physical parts of the computer.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Digital Literacy: Computer Basics
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
Chapter 2 content Basic organization of computer What is motherboard
Chapter 1: Introduction to Computers and Programming
Computer Basics.
Computer Architecture and Number Systems
Computer Hardware What is a CPU.
CPU Lesson 2.
An Overview of the Computer System
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Control Unit Lecture 6.
11.10 Human Computer Interface
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
GCSE COMPUTER SCIENCE Topic 4 - Computers 4.2 Hardware.
Course Name: Computer Application Topic: Central Processing Unit (CPU)
IB Computer Science Topic 2.1.1
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Computers: Hardware and Software
Introduction to Computers
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Overview of Computer Architecture and Organization
Components of a CPU AS Computing - F451.
Introduction to Computer Architecture
Data Communications and Computer Networks
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
1.3.7 High- and low-level languages and their translators
Computer components.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every time the program is run. This is a slow process but it is useful when trying to find errors in the program. Advantage: It translates each line of the program as it is run and gives an error message straight away. This is a great help when learning to write programs since errors can be found and corrected immediately.

Interpreter Current Location 10 Print “HELLO” HELLO Interpreter 20 Print names$ 30 LET a=a+1 40 Repeat 50 a=a+1 60 b=b+2 70 UNTIL Not d+23=1 80 “Screenload “file1” 90 Execute code2 Interpreter Program 10 Print “HELLO” HELLO

Disadvantage Since each line is translated into machine code each time the program is run, an interpreted program is slow. An interpreter would translate this loop 30 times every time it runs the program: FOR counter = 1 TO 30 PRINT name$ NEXT counter

A Compiler This translates high level language instructions ( the source code ) into machine code (the object code). Once it has done the translation it saves the machine code version, the object code. Advantages : It only translates the High Level language instructions once. It then stores the machine code for future use. This means Compiled programs are much faster than interpreted programs.

Compiled Program (Machine Code) Compiler Compiled Program (Machine Code) Source Code Compiler Program

Disadvantage It translates all the high level language instructions at the one time after they have been keyed in. This means that many errors are not spotted until the programmer has finished. This is awkward when you are learning to program using a compiled language.

Portable High Level Languages are portable. This means they can be written on one computer system and then transferred to and run on other systems. Programs written in assembly language programs are low-level, specific to one type of processor, and are not portable.

Standard Functions of the OS User interface (HCI) The OS provides the means of the user communicating (interacting) with the computer system Features such as windows, icons, menus, commands, etc. are all provided by the operating system 10110110 Open word processor OS

Standard Functions of the OS Controls input/output The access to all devices attached to the computer is controlled by the OS. For example, the OS can stop two programs trying to use the same device at the same time.

Standard Functions of the OS Manages memory Controls where programs and data are placed in the main memory. Error Reporting The operating system lets the user know if any mistakes have occurred E.g. No paper in printer

Different Types of Filing System To avoid a cluttered desktop files must be organised in folders or directories. Directories can be organised into a Hierarchical Structure. This means that directories are stored one inside another in a logical order.

We use a Hierarchical Directory Structure because:- It has a logical, orderly structure and so makes it easier to find files. Also it enables you to control access to folders e.g. by making them read only.   My Documents French Comp English Word Processing Programming Task 1 Task 2

1. How many folders/directories are inside the computing folder? 2. Which two folders are inside programming? 3. Where would you add a folder for Supertask 4?

Sequential Access and Random/Direct Access Sequential Access to Data In a system with sequential access the system starts at the beginning and reads each piece of data until it locates what it needs.   A database file stored on magnetic tape (sequential). If the system wants to read record 6 it has to start at the beginning at record 1 and access each record in turn until it reaches the one it wants.

Random/Direct Access to Data  This means the system accesses the data it needs by going directly to where it is stored. Hard disks are random access devices, so are CD-ROMs. Random/Direct access is often found in interactive systems such as in a system designed to book train tickets because it gives instant access to the data

The Processor is made up of a Control Unit the CU, the Arithmetic and Logic Unit the ALU, and Registers. The Control Unit issues control signals to organise: the storing of data in memory the fetching of data from memory the carrying out of instructions

Arithmetic and Logic Unit    ALU This carries out the arithmetic and logical functions. Arithmetic functions include addition, subtraction, multiplication and division. One example of a Logic function is comparing values (Is x>5) Registers Registers are memory locations on the actual processor itself. It uses them to store data, instructions and memory addresses.

Word A word is the amount of data that the processor can move in and out of memory and manipulate at any one time. If a computer has a 16 bit word it can manipulate16 bits at a time. If a computer has a 32 bit word it can manipulate 32 bits at a time. The size of the word helps you measure the power of your system.

Memory Addresses In this example each location holds 16 bits of data The computer's main memory is divided up into locations. Each location has an address and each one can store data. Location Address Contents 011110101001110 1111000010101010 011110011110101 1010111111111010 When the processor is fetching data from memory it uses the address to find the data.

Soundcards These change the sound files held in your computer in digital form into analogue signals which are then sent to the speakers. This is known as Digital to Analogue conversion.   When a sound card captures a sound it takes thousands of samples of the sound waves each second, turning the samples into binary numbers and then storing the data in the computer.

Soundcards These change the sound files held in your computer in digital form into analogue signals which are then sent to the speakers. This is known as Digital to Analogue conversion.   When a sound card captures a sound it takes thousands of samples of the sound waves each second, turning the samples into binary numbers and then storing the data in the computer.

Soundcards In order to relieve the CPU of the task of processing the all this data, most audio / sound cards have a dedicated processor, called a Digital Signals Processor or DSP.

Graphics Card More and more programs use graphics, e.g. games with animated 3D graphics. These graphics make lots of demands on system memory and on the processor’s time. Graphics cards have on-board RAM which is dedicated to storing graphics data. 128 Mbytes of RAM on a graphics card is common.

Graphics Card Co-processors are used to help the card continuously send out signals to control the colours and refresh the image on the screen. The most modern cards can draw millions of objects per second on a screen.

Virtual Reality A virtual reality system creates the illusion that the user is inside the world created by the virtual reality software. The user feels part of that world and can move around in it and manipulate it.

Virtual Reality VR creates the illusion that the user is inside a world created by the computer This is achieved using specialist input and output devices

VR Input and Output Gloves or even full body suits that detect the users movement This is translated to the virtual world by VR software Immersive output The user is completely surrounded by data from the virtual world Sound 3D graphics

Uses of Virtual Reality Games Training in emergency situations Simulations Training where there is a risk to life (e.g. surgery)                               

Specialised Input for disabled Sensors that detect slight movement in part of the body e.g. blinking Muscle control sending electrical signals to control computer Head tracking Specialised keyboards Touch sensitive screen Thought control

Special keyboards have also been designed for disabled users. There are also special screens available for people with speech difficulties.                    

Specialised Output for disabled Speech output Magnifiers Ultrasound and infrared output to control devices Motorised output