09f_cpe431_chap2_9 - UAH Chapter 2 (4th Ed.) CPE 431/531...

Info iconThis preview shows pages 1–2. 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 : a = b + c; d = a – e; f = (g + h) – (i + j); 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, al ocates 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];
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

09f_cpe431_chap2_9 - UAH Chapter 2 (4th Ed.) CPE 431/531...

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

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