09f_cpe431_chap2_4 - UAH Chapter 2(4th Ed CPE 431/531 CPE 431/531 Chapter 2 Instructions Language of the Computer Dr Rhonda Kay Gaede 2.2

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 1 Electrical and Computer Engineering CPE 431/531 Chapter 2 – Instructions: Language of the Computer Dr. Rhonda Kay Gaede UAH Electrical and Computer Engineering Page 2 of 28 UAH CPE 431/531 Chapter 2 (4 th Ed.) 2.1 Introduction The words of a computer’s language are called __________ and its ____________ is called an _________ ___ ______________. __________ sets are more similar than they are different, however there are two camps: _________________ _________________ Electrical and Computer Engineering Page 3 of 28 UAH CPE 431/531 Chapter 2 (4 th Ed.) 2.2 Operations of the Computer Hardware – Basics of MIPS Arithmetic • We need arithmetic add a, b, c • From high level a = b + c + d + e; • Fixing the ______ __ _________ keeps the hardware _______. • Design Principle 1: __________ ______ __________ Electrical and Computer Engineering Page 4 of 28 UAH CPE 431/531 Chapter 2 (4 th Ed.) 2.2 Operations of the Computer Hardware – The Role of the Compiler • Compilation is the process of creating MIPS assembly language from a high level language. •E x am p l e s
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Electrical and Computer Engineering Page 5 of 28 UAH CPE 431/531 Chapter 2 (4 th Ed.) 2.3 Operands of the Computer Hardware – MIPS Basics • In high level languages, ________ is __________ for each variable • In MIPS assembly, operands live only in __________ • _____ _______ instructions move _________ from memory/registers to registers/memory. • MIPS has ___ registers and an address space of ____ _______. • Design Principle 2: ________ __ _______. Electrical and Computer Engineering Page 6 of 28 UAH CPE 431/531 Chapter 2 (4 th Ed.) 2.3 Operands of the Computer Hardware – Memory Operands: First Pass • Data transfer instructions – Load ___________________ – Store ___________________ • Compiling an Assignment When an Operand is in Memory –A is an array of ___ ____, base pointer $s3, g $s1 , h $s2 – g = h + A[8]; • Hardware/Software Interface – A compiler translates, associates variables with registers, allocates memory to data structures. Electrical and Computer Engineering Page 7 of 28 UAH CPE 431/531 Chapter 2 (4 th Ed.) 2.3 Operands of the Computer Hardware - Memory Operands: Second Pass • Bytes/Words – _____ words consist of __ _____ bytes – MIPS is ____ addressable – g = h + A[8]; A[12] = h + A[8]; • Constants or Immediate Operands addi $s3, $s3, 4 • Design Principle 3: _____ ___ _______ _____ ____. Electrical and Computer Engineering
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/22/2011 for the course CPE 431 taught by Professor Staff during the Fall '09 term at University of Alabama - Huntsville.

Page1 / 7

09f_cpe431_chap2_4 - UAH Chapter 2(4th Ed CPE 431/531 CPE 431/531 Chapter 2 Instructions Language of the Computer Dr Rhonda Kay Gaede 2.2

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online