Computer Basics.

Slides:



Advertisements
Similar presentations
Computer Memory and Data Transfer
Advertisements

Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
Lecture 1: Overview of Computers & Programming
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Lab6 – Debug Assembly Language Lab
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Topic 1: Introduction to Computers and Programming
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Course: Introduction to Computers
1 Chapter-01 Introduction to Computers and C++ Programming.
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.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
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.
Computer Organization
Topics Introduction Hardware and Software How Computers Store Data
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
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.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
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,
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 1: Introduction to Computers and Programming.
Chapter 1 Introduction 2nd Semester H
Software Development Environment
Topic 2: Hardware and Software
BASIC PROGRAMMING C SCP1103 (02)
GCSE COMPUTER SCIENCE Computers 1.5 Assembly Language.
Operating System Interface between a user and the computer hardware
Topics Introduction Hardware and Software How Computers Store Data
BASIC PROGRAMMING C SCP1103 (02)
Overview of Computers and Programming Chapter 1
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Introduction to Computers and Java
Course: Introduction to Computers
Overview of Computers & Programming Languages
TRANSLATORS AND IDEs Key Revision Points.
Computer Science I CSC 135.
Computers: Hardware and Software
CSCE Fall 2013 Prof. Jennifer L. Welch.
CSCE 121: Simple Computer Model Spring 2015
Topics Introduction Hardware and Software How Computers Store Data
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
CSCE Fall 2012 Prof. Jennifer L. Welch.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
There are different types of translator.
All assignments and information is posted on web site
CS IA: Procedural Programming CS IB: Object-Oriented Programming
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
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
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Computer Basics

System Drive Mother Board CD Rom Drive

CPU System bus Video Card System bus Sound Card Computer Memory Disk drivers

The CPU cache

What Do These Parts Do? CPU Stores numbers in special (very fast) memory locations called registers. Adds, subtracts, multiplies and divides numbers in registers. Stores results in registers. Get numbers from specific RAM locations via the bus. Some numbers are data, some are instructions. Each data item or instruction has a location in RAM where it is stored, ie a memory address Test value (positive, negative, zero) of register and change instruction number (memory address of next instruction) based on result. Write numbers to bus.

What Do These Parts Do? Bus Moves numbers from one device to another. Devices are described by numbers (bus addresses). Each device signals the bus to send some amount of data (numbers) to another device. Bus signal other device to read incoming data. RAM and Disk Drives Receives memory address and data and stores data in specified address or sends data from a specified address. Video Card and Sound Card Receives data and instructions from bus and controls video or sound device based on instructions received. Writes data to bus in response to instructions received.

That Does Not Seem to Compute How these piece go together to do what we know a computer can do (play music, do spread sheets, play videos, etc) is not easy to see. Understanding what a computer program (the instructions the CPU receives) does is the first step toward understanding how to make a computer to fancy things.

Computer Software(program) Components Operating System: Software that controls the interaction of the user, software applications, and the hardware. Examples: Microsoft WindowsXP, Microsoft Vista, Linux, SunOS, HPUX. When the computer starts it gets its instructions from a section of memory called the boot ROM (Read Only Memory). The intial program stored in the boot ROM reads into memory another program from the disk called the boot loader. After the boot loader is in memory, the startup boot program instructs the CPU to get its next instruction at the start of the memory it just loaded. The boot loader then loads the next part of the operating system and then cause the CPU to execute the newly loaded instructions. This boot strapping procedure is repeated until the full operating system is loaded and executing. The process is known as booting the computer.

Computer Software Components Drivers: programs that the operating system uses to control the hardware. Drivers are hardware specific. When you install a new hardware component, it often requires a driver written specifically for it. Applications programs: By clicking on an icon or by typing in a command, the user selects a program, the operating system loads the program into memory and instructs the CPU to execute its next instruction at the start of the newly loaded instructions.

Computer Memory Computer memory stores numbers as a sequence of 0's and 1's. A single 0 or 1 is called a bit. PC's and most other computers organize memory into collections of 8 bits, called a byte. Modern computers have from 500 million bytes to 10's of billion bytes. One byte can hold 256 numbers from 0 to 255.

Computer Memory Zero is 00000000 and 255 is 11111111. Other numbers are shown below.

Computer Instructions A program to add the value of the contents of register A to the contents of register B and store the results in register B In computer memory this might look like Memory Addr Instruction mnemonics 10110110111101101110111100011100 10000000000000000000000000000000 CLA 10110110111101101110111100011110 10000000000000000000000000010101 ADD B 10110110111101101110111100100000 10000000000000000000000000010110 ADD A 10110110111101101110111100100010 10000000000000000000000000110101 STR B

Numbers to Letters

Computer Languages Originally, programmers ( before 1950's) wrote programs using the binary code for the instructions ie the 0's and 1's—Machine language programming As that was exceedingly difficult to get correct, programmers soon switched to writing in the mnemonics and having the computer fill in the binary numbers—Assembly language programming.

Computer Languages But assembly language was still hard to program in and was different for each type of computer. It is easier to think of the operations mathematically, say as b=b+a. This lead to the development of high level languages that express the operation one needs to perform on the numbers, rather than the machine instructions to do it.

Computer Languages The first high level language Fortran became available in 1957. Other well-known high level languages are COBOL, C, C++, and Java. C/C++ code: a=4; b=3.1; b=a+b; printf(“b=%f\n”,b);

Compilers A high level language needs another program, called a compiler, to translate the operations it describes into machine code (ie binary numbers that are machine instructions). Actually, modern compilers first perform an intermediate translation into what is know as an object file.

Linker Object files usually contain references to other programs that must be combined together before a working program is produced. A program called a linker resolves cross references between object files creating a complete program. Often the compiler invokes the linker when it is done translating the source file.

Object Oriented Languages Object oriented languages allow a programmer to group variables and computer code together to define a conceptual object such as a window on a computer screen. Once created an object can easily be specialized to an indivdual programmers needs. This feature makes it easier to develop programs. C++ and Python are Object Oriented Languages.

Interpreted Programming Languages Interpreted language is a programming language in which programs are 'indirectly' executed ("interpreted") by an interpreter program. This can be contrasted with a compiled language which is converted into machine code and then 'directly' executed by the host CPU Python is an interpreted Program. Interpreted programs run slower than a compiled programs, but they are easier to program.