1 Chapter 1 Background Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University 9/17/2009.

Slides:



Advertisements
Similar presentations
Introduction – This book introduces to the design and implementation of System Software
Advertisements

Chapter Outline Chapter 1 of Beck’s “System Software” book
System Programming Design and Implementation of system software.
Chapter 8: Central Processing Unit
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.
系 統 程 式 System Programming
Welcome to Systems Software The purpose of this course is to provide background in fundamental types of system software, particularly assemblers, loaders,
1 System Programming System Software, pp Chia-Hui Chang, Assistant Professor Dept. of Computer Science & Information Engineering National Central.
The Simplified Instructional Computer (SIC/SICXE)
1: Background1 System Programming ( 系統程式 ) Main goal: r What is a system software? m Compiler m Assembler m Loader and Linker m Debugger… r To design and.
Simplified Instructional Computer (SIC). SIC Architecture Two versions: SIC and SIC/XE (extra equipments). SIC program can be executed on SIC/XE. Memory.
SYSTEM SOFTWARE Dr.A.KANNAN, PROFESSOR & HEAD, DEPARTMENT OF IST CS2304.
System Software by Leland L. Beck chapter 1, pp.1-20.
Chapter 1 Background System Software Chih-Shun Hsu
1 The Simplified Instructional Computer (SIC) Hsiang-Fu Yu National Taipei University of Education.
System Programming System Software:
System Software.
System Software by Leland L. Beck chapter 1, pp.1-20.
System Programming Chih-Hung Wang Chapter 1: Background (Part-1) 參考書目
Chih-Hung Wang Chapter 2: Assembler (Part-1) 參考書目 Leland L. Beck, System Software: An Introduction to Systems Programming (3rd), Addison-Wesley, 1997.
System Programming System Software:
CS2422 Assembly Language & System Programming November 21, 2006.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
Chih-Hung Wang Chapter 1: Background (Part-1) 參考書目 Leland L. Beck, System Software: An Introduction to Systems Programming (3rd), Addison-Wesley, 1997.
Assembler (Basic Functions)
Computer Architecture
Overview von Neumann Model Components of a Computer Some Computer Organization Models The Computer Bus An Example Organization: The LC-3.
MIPS Instruction Set Advantages
Background. Outlines Brief introduction to system software System software and machine architecture Simplified Instructional Computer (SIC) –Architecture.
CPS120: Introduction to Computer Science
Machine Instruction Characteristics
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Computer Architecture and Organization
1/23/20067CPS4200 System Programming Spring 1 Systems Programming Chapter 1 Background III.
Ass. Prof. Dr Masri Ayob TK 2123 Lecture 14: Instruction Set Architecture Level (Level 2)
Instruction Sets: Characteristics and Functions  Software and Hardware interface Machine Instruction Characteristics Types of Operands Types of Operations.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
CC410: System Programming Dr. Manal Helal – Fall 2014 – Lecture 10 – Loaders.
CPS4200 System Programming Spring 1 Systems Programming Chapter 1 Background I.
CC410: System Programming Dr. Manal Helal – Fall 2014 – Lecture 4 - Assembler 1.
國立政治大學資訊科學系 Introduction
김길용 교수 분산처리연구실 시스템 프로그래밍 김길용 교수 분산처리연구실
Machine dependent Assembler Features
Addressing Modes in Microprocessors
Immediate Addressing Mode
MIPS Instruction Set Advantages
Prof . Ki-Dong Chung Pusan Nat’l University
System Programming and administration
System Programming and administration
System Programming Design and Implementation of system software.
SYSTEM SOFTWARE - UNIT II
THE sic mACHINE CSCI/CMPE 3334 David Egle.
Assemblers - 2 CSCI/CMPE 3334 David Egle.
Simplified Instructional Computer (SIC)
Chapter 1 Background Professor Gwan-Hwan Hwang
ECEG-3202 Computer Architecture and Organization
Simplified Instructional Computer (SIC)
ultraSPARC과 SIC/XE Machine 비교
System Programming by Leland L. Beck Chapter 2
ECEG-3202 Computer Architecture and Organization
Assemblers CSCI/CMPE 3334 David Egle.
Welcome to Systems Software
Loaders and Linkers.
Chapter 6 Programming the basic computer
SYSTEM SOFTWARE CS2304 Dr.A.KANNAN, PROFESSOR & HEAD,
System Programming By Prof.Naveed Zishan.
Lecture 1: SIC Architecture
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

1 Chapter 1 Background Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University 9/17/2009

2 Outlines 1.1 Introduction 1.2 System Software and Machine Architecture 1.3 The Simplified Instructional Computer (SIC) –SIC Machine Architecture –SIC/XE Machine Architecture –SIC Programming Examples 1.4 Traditional (CISC) Machines 1.5 RISC Machines

3 Introduction Definition of System software –System software consists of a variety of programs that support the operation of a computer Examples –Text editor, compiler, loader or linker, debugger, macro processors, operating system, database management systems, software engineering tools, etc.

4 System Software and Machine Architecture One characteristic in which most system software differs from application software is machine dependency System programs are intended to support the operation and use of the computer itself, rather than any particular application. –E.g. Assemblers, compilers, operating systems

System Software and Machine Architecture (Cont’d) There are some aspects of system software that do not directly depend upon the type of computing system being supported –The second para. of Section 1.2 5

6 System Software and Machine Architecture (Cont’d) Because most system software is machine- dependent, we must include real machines and real pieces of software in our study. Simplified Instructional Computer (SIC) –SIC is a hypothetical computer that has been carefully designed to include the hardware features most often found on real machines, while avoiding unusual or irrelevant complexities

7 The Simplified Instructional Computer (SIC) Like many other products, SIC comes in two versions –The standard model –An XE version “extra equipments”, “extra expensive” The two versions has been designed to be upward compatible –An object program for the standard SIC machine will also execute properly on a SIC/XE system

8 SIC Machine Architecture Memory –Memory consists of 8-bit bytes –Any 3 consecutive bytes form a word (24 bits) –Total of (2 15 ) bytes in the computer memory

9 SIC Machine Architecture (Cont’d) Registers –Five registers –Each register is 24 bits in length MnemonicNumberSpecial use A0 Accumulator X1 Index register L2 Linkage register PC8 Program counter SW9 Status word

10 SIC Machine Architecture (Cont’d) Data Formats –Integers are stored as 24-bit binary number –2’s complement representation for negative values –Characters are stored using 8-bit ASCII codes –No floating-point hardware on the standard version of SIC

11 SIC Machine Architecture (Cont’d) Instruction Formats –Standard version of SIC –24 bits 8115 opcodexaddress The flag bit x is used to indicate indexed-addressing mode

12 SIC Machine Architecture (Cont’d) Addressing Modes –There are two addressing modes available Indicated by x bit in the instruction ModeIndicationTarget address calculation Directx=0TA=address Indexedx=1TA=address+(X) (X): the contents of register X

13 SIC Machine Architecture (Cont’d) Instruction Set –Load and store registers LDA, LDX, STA, STX, etc. –Integer arithmetic operations ADD, SUB, MUL, DIV All arithmetic operations involve register A and a word in memory, with the result being left in A –COMP –Conditional jump instructions JLT, JEQ, JGT –Subroutine linkage JSUB, RSUB See appendix A, Pages

14 SIC Machine Architecture (Cont’d) Input and Output –Input and output are performed by transferring 1 byte at a time to or from the rightmost 8 bits of register A Test Device TD instruction Read Data (RD) Write Data (WD)

15 SIC/XE Machine Architecture Memory –Maximum memory available on a SIC/XE system is 1 megabyte (2 20 bytes)

16 SIC/XE Machine Architecture (Cont’d) Registers –Additional registers are provided by SIC/XE MnemonicNumberSpecial use B3 Base register S4 General working register T5 F6 Floating-point accumulator (48 bits)

17 SIC/XE Machine Architecture (Cont’d) There is a 48-bit floating-point data type sexponentfraction F*2 (e-1024)

18 SIC/XE Machine Architecture (Cont’d) Instruction Formats –15 bits in (SIC), 20 bits in (SIC/XE) 8 op 844 r1r2 Format 1 (1 byte) Format 2 (2 bytes) Formats 1 and 2 are instructions that do not reference memory at all

19 SIC/XE Machine Architecture (Cont’d) op nixbpe disp Format 3 (3 bytes) op nixbpe address Format 4 (5 bytes) ModeIndicationTarget address calculation Base relativeb=1,p=0 TA=(B)+disp (0  disp  4095) Program-counter relative b=0,p=1 TA=(PC)+disp (-2048  disp  2047)

20 SIC/XE Machine Architecture (Cont’d) Instruction Formats –See Figure 1.1, P. 11.

21

22 SIC/XE Machine Architecture (Cont’d) Instruction Set –Instructions to load and store the new registers LDB, STB, etc. –Floating-point arithmetic operations ADDF, SUBF, MULF, DIVF –Register move instruction RMO –Register-to-register arithmetic operations ADDR, SUBR, MULR, DIVR –Supervisor call instruction SVC

23 SIC/XE Machine Architecture (Cont’d) Input and Output –There are I/O channels that can be used to perform input and output while the CPU is executing other instructions

24 SIC Programming Examples Figure 1.2 –Sample data movement operations Figure 1.3 –Sample arithmetic operations Figure 1.4 –Sample looping and indexing operations Figure 1.5 –Sample looping and indexing operations Figure 1.6 –I/O Figure 1.7 –Subroutine call

25

26

27

28

29

30