CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Machine cycle.
Chapter 1. Basic Structure of Computers
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
CSE115: Introduction to Computer Science I
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
Computer Systems. Computer System Components Computer Networks.
The Analytical Engine Module 6 Program Translation.
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Stored Program Concept: The Hardware View
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
Computer Organization Computer Organization & Assembly Language: Module 2.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
Levels of Architecture & Language CHAPTER 1 © copyright Bobby Hoggard / material may not be redistributed without permission.
Information Representation: Machine Instructions
CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall 1.
Computer Systems Organization CS 1428 Foundations of Computer Science.
ECE 103 Engineering Programming Chapter 5 Programming Languages Herbert G. Mayer, PSU CS Status 6/19/2015 Initial content copied verbatim from ECE 103.
Topic 1Topic 2Topic 3Topic 4Topic
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Assembly Language A Brief Introduction. Unit Learning Goals CPU architecture. Basic Assembler Commands High level Programming  Assembler  Machine Language.
The Central Processing Unit (CPU) and the Machine Cycle.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
Lecture 7: 9/17/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Architecture Lecture 03 Fasih ur Rehman.
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.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
Dale & Lewis Chapter 5 Computing components
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
Chapter 1 An Overview of Computers and Programming Languages.
CPUz 4 n00bz.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
1 What we want: execute High Level Language (HLL) programs What we have: computer hardware (a glorified calculator)
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
Machine and Assembly Language
ECE 103 Engineering Programming Chapter 5 Programming Languages
CPU Organisation & Operation
Gunjeet Kaur Dronacharya Group of institutions
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Microprocessor and Assembly Language
C++ Programming: From Problem Analysis to Program Design
Computer Architecture
The fetch-execute cycle
The Processor and Machine Language
CSCE Fall 2013 Prof. Jennifer L. Welch.
Computer Architecture
CSE 113 A January 19 – 23, 2009.
January 19 – 23, 2009 CSE 113 B.
MARIE: An Introduction to a Simple Computer
Program Execution.
Sec (2.3) Program Execution.
Presentation transcript:

CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1

Announcements Cell phones off Name signs out 2

Today’s lessons Instructions are encoded as bit strings Machine languages Fetch-Decode-Execute cycle Assembly languages High-level languages Requirements for a programming language 3

Computer Organization Central Processing Unit (CPU) –Registers General purpose (e.g. R1 – R16) Special purpose (e.g. Program Counter and Instruction Register) –Arithmetic Logic Unit (ALU) Memory 4

Computer Organization 5 Processor (CPU) Memory (RAM) R1R2... R16 PC IR ALU

Encoding instructions Example – –INSTR ARG1 ARG2 –ADD Reg1 Reg2 6

This wire will carry a 1 only if the op code of the instruction is Instruction decoding Circuitry to decode rest of instruction and carry it out (“execute” the instruction) “ADD” OP CODE R1 R2

Fetch-Decode-Execute cycle Fetch an instruction (& update PC) Decode instruction Execute instruction 8 Fetch (load instruction into IR from location in PC) Update PCDecodeExecute

Low-level languages Machine language – Assembly language –ADD R1 R2 9

High level languages Java –We can write “x + y” instead of “ADD R1 R2” (in addition to with several MOV instructions) Others: C#, Erlang, Python, ML, Prolog, Lisp 10

Translation LLL  LLL is called assembly –there is a 1:1 translation from assembly to machine language –fairly simple process HLL  LLL is called compilation –there is no 1:1 translation –translation is quite complex –optimizations can be applied to make low level code more efficient 11

Requirements of a PL Sequencing Selection Repetition 12

Equivalences Computation models –Turing Machine –Lambda calculus Programming languages –Java –C# –Prolog –Python 13

High-level languages Easier syntax than –Machine language (bit strings) –Assembly language (mnemonic) Must be translated (compiled) to machine language 14

Java A modern high-level language Object-oriented Large libraries (Relatively) simple core language 15

Questions? 16