There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.

Slides:



Advertisements
Similar presentations
including File Management
Advertisements

INTRODUCTION OF COMPUTER
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Introduction to Computer Systems
Introduction to Computers
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
CPU Describe the purpose of the CPU
Parts of a Computer.
Systems Software Operating Systems.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
The Operating System. Operating Systems (F) What you need to know about –operating system as a program; –directory/folder.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
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.
Topics Introduction Hardware and Software How Computers Store Data
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
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.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
Standard Grade Computing System Software & Operating Systems.
11.10 Human Computer Interface www. ICT-Teacher.com.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Introduction to Computers
CHAPTER FOUR COMPUTER SOFTWARE.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
Standard Grade Computing OPERATING SYSTEMS CHAPTER 20.
Computer Components Checklist There are many parts that work together to make a computer work.
SHANKERSINH VAGHELA BAPU INSTITUTE OF TECHNOLOGY(075). Faculty Name:- Prof H.M.Patel GROUP MEMBERS: ELECTRICAL ENGINEERING UTSAV , KRUTI ,
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. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Computer Architecture
Parts of a Computer - Introduction
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
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.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
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 Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
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,
Von Neumann Machines. 3 The Von Neumann Architecture Model for designing and building computers, based on the following three characteristics: 1)The.
Hardware and Software By: Kyle Face. Hardware! Main computer hardware components Hardware refers to the physical components of a computer (What you can.
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 Basics.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Computers: Hardware and Software
Introduction to Computers
Overview of Computer Architecture and Organization
There are different types of translator.
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
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 10 Print “HELLO” 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 10 Print “HELLO” Interpreter Program HELLO Current Location

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.

Compiler Program Compiled Program (Machine Code) Source Code

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 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 FrenchCompEnglish 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 AddressContents 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